esp-nimble-cpp icon indicating copy to clipboard operation
esp-nimble-cpp copied to clipboard

Standard NimBLE C services?

Open malachib opened this issue 5 months ago • 2 comments

Hi, and thank you for this library.

We are using a rather old version of esp-nimble-cpp for a custom service along with ESP-IDF v5.4.2.

I wanted to use some off-the-shelf NimBLE services, as provided by:

  • ble_svc_dis_init
  • ble_svc_bas_init

However, doing so appears to interfere with esp-nimble-cpp operations and GATT characteristic reads die once DIS is interacted with. Is it possible for these to co-exist? Any idea what's wrong?

malachib avatar Jul 09 '25 00:07 malachib

This could work but you would have to register callbacks for handling lots of things and probably in a correct order, not really recommended.

Instead I can point you to this: https://github.com/h2zero/NimBLEOta which contains a DIS service that you can copy/modify. The BAS service could be implemented similarly.

h2zero avatar Jul 09 '25 23:07 h2zero

Not the answer I hoped for, but the answer I needed. Thank you for this

malachib avatar Jul 10 '25 15:07 malachib