Skip to content

Defined BLE setAdvertisementType #3535

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

Merged

Conversation

syonbori
Copy link
Contributor

@syonbori syonbori commented Dec 3, 2019

Currently we have no way to set BLE Advertisement Type.
We have an initial value of ADV_TYPE_IND and the member is private.

iBeacon should advertise with ADV_TYPE_NONCONN_IND.
esp-idf's example code specifies this value.

https://github.com/espressif/esp-idf/blob/93a8603c545fb8e54741d6685146e2f3b874378d/examples/bluetooth/bluedroid/ble/ble_ibeacon/main/ibeacon_demo.c#L57

@Legion2
Copy link

Legion2 commented Jan 5, 2020

@chegewara Shouldn't this be added to https://github.com/nkolban/esp32-snippets/tree/master/cpp_utils, because the library is maintained in the nkolban/esp32-snippets repo? And then sync the library as described in https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/ArduinoBLE.md#replacing-the-version-that-comes-with-arduino-esp32 back to this repo.

Currently the libraries are out of sync. For example the setStaticPIN feature is supported in nkolban/esp32-snippets but not here.

@chegewara
Copy link
Contributor

Currently arduino BLE library and cpp_utils are separate libraries. If there is something that is missing in arduino, but exists in cpp_utils feel free to create PR here.

@me-no-dev me-no-dev merged commit 915d45d into espressif:master Jan 20, 2020
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.

4 participants