Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RE: Change check for BT_ENABLE to really be a check for BLUEDROID_ENABLED #4497

Merged
merged 10 commits into from
Nov 6, 2020

Conversation

me-no-dev
Copy link
Member

Hi,

My project has migrated away from the bluedroid based Bluetooth API in this project, but I'd still like to be able to use the rest of the arduino api. It turns out, the change needed to make that happen is quite minor (though it does need to be applied many places). The existing code was checking for the CONFIG_BT_ENABLED flag, when really it would be better to check for CONFIG_BLUEDROID_ENABLED. Because the BLE classes in here are Bluedroid specific.

With this change, projects that have turned off BLUEDROID_ENABLED (but left on BT_ENABLED) will build correctly. Since existing projects (including the prebuilt esp32-arduino-lib-builder) binaries define BLUEDROID_ENABLED any time BT_ENABLED is set - it shouldn't break existing usage.

Btw - I'm now using Nimble as my BLE stack and it works great (and is super small). It is also a nicer (and open source) API than bluedroid, so it doesn't need the same amount of helpful wrapper classes.

geeksville and others added 7 commits July 22, 2020 18:06
…EDROID_ENABLED

Which is really what should have been tested.  This allows use of
the Arduino layer with the newer Nimble stack for those that don't want
to use Bluedroid.

In support of meshtastic/firmware#266
# Conflicts:
#	libraries/WiFi/src/WiFiProv.cpp
#	libraries/WiFi/src/WiFiProv.h
…EDROID_ENABLED

Which is really what should have been tested.  This allows use of
the Arduino layer with the newer Nimble stack for those that don't want
to use Bluedroid.

In support of meshtastic/firmware#266
@me-no-dev me-no-dev changed the base branch from master to idf-release/v4.2 November 6, 2020 11:18
@me-no-dev me-no-dev merged commit 591c438 into idf-release/v4.2 Nov 6, 2020
@me-no-dev me-no-dev deleted the pr4197 branch November 6, 2020 12:00
me-no-dev added a commit that referenced this pull request Mar 31, 2021
…BLED (#4497)

* Change check for CONFIG_BT_ENABLE to really be a check for CONFIG_BLUEDROID_ENABLED

Which is really what should have been tested.  This allows use of
the Arduino layer with the newer Nimble stack for those that don't want
to use Bluedroid.

In support of meshtastic/firmware#266

* Change check for CONFIG_BT_ENABLE to really be a check for CONFIG_BLUEDROID_ENABLED

Which is really what should have been tested.  This allows use of
the Arduino layer with the newer Nimble stack for those that don't want
to use Bluedroid.

In support of meshtastic/firmware#266

* wifi prov changes

* merge fixes

Co-authored-by: geeksville <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants