I updated to the latest version of esp-idf (v5.5) and the latest esp-nimble-cpp (2.3.1), and I needed to to enable CONFIG_BT_NIMBLE_ROLE_CENTRAL=y to make my code compile.
The latest release of esp-idf (v5.5), updated the underlying nimble library. In particular, it added #if MYNEWT_VAL(BLE_GATTC) around some of the deprecated functions:
https://github.com/espressif/esp-nimble/blob/cc3ac5416b46e6e9363dae357378c03b4975cfdb/nimble/host/src/ble_gattc.c#L5446
esp-nimble-cpp calls the deprecated ble_gattc_... instead of ble_gatts_... function. The ble_gattc_... function calls the ble_gatts_... directly, so it seems like esp-nimble-cpp could just call the ble_gatts_... function directly.
I believe the only place the ble_gattc_indicate_custom and ble_gattc_notify_custom are called are in this file:
https://github.com/h2zero/esp-nimble-cpp/blob/master/src/NimBLECharacteristic.cpp#L281
I updated to the latest version of esp-idf (
v5.5) and the latest esp-nimble-cpp (2.3.1), and I needed to to enableCONFIG_BT_NIMBLE_ROLE_CENTRAL=yto make my code compile.The latest release of esp-idf (
v5.5), updated the underlying nimble library. In particular, it added#if MYNEWT_VAL(BLE_GATTC)around some of the deprecated functions:https://github.com/espressif/esp-nimble/blob/cc3ac5416b46e6e9363dae357378c03b4975cfdb/nimble/host/src/ble_gattc.c#L5446
esp-nimble-cppcalls the deprecatedble_gattc_...instead ofble_gatts_...function. Theble_gattc_...function calls theble_gatts_...directly, so it seems likeesp-nimble-cppcould just call theble_gatts_...function directly.I believe the only place the
ble_gattc_indicate_customandble_gattc_notify_customare called are in this file:https://github.com/h2zero/esp-nimble-cpp/blob/master/src/NimBLECharacteristic.cpp#L281