Skip to content

Standard NimBLE C services? #348

Open

Description

@malachib

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?

Activity

  1. h2zero commented on Jul 9, 2025

    @h2zero
    Owner

    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.

  2. malachib commented on Jul 10, 2025

    @malachib
    Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions