Skip to content

CONFIG_BT_NIMBLE_ROLE_CENTRAL is required with esp-idf 5.5 #353

@larryk3

Description

@larryk3

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions