taks / esp32-nimble

A wrapper for the ESP32 NimBLE Bluetooth stack.
Apache License 2.0
118 stars 35 forks source link

Fix advertising regression in v0.2.1 #31

Closed jasta closed 1 year ago

jasta commented 1 year ago

For unknown reasons v0.2.1 changed the default advertising start duration to 0 which causes it to effectively disable advertising immediately. The documentation suggests we should use BLE_HS_FOREVER which according to host/ble_hs.h is INT32_MAX, though that constant isn't made available through esp_idf_sys for some reason.

Closes #28, #29

taks commented 1 year ago

Thanks