NimBLE-Arduino icon indicating copy to clipboard operation
NimBLE-Arduino copied to clipboard

notify not updating values in nRF Connect

Open Gibbz opened this issue 1 year ago • 1 comments

I'm trying to get my ble notifications to auto update on nRF Connect android app. Ive selected the button to subscribe to notifications in the app.

I'm unsure if this is a bug with the app, my code, or the library. Basically I have the following snips of code. I assume this is all I need to do to get it to work?

Set characteristic

  trip_duration_characteristic = user_data_service->createCharacteristic(
                                         (uint16_t) 0x2BF2,
                                         NIMBLE_PROPERTY::READ |
                                         NIMBLE_PROPERTY::NOTIFY);

Apply a value, and notify

    trip_duration_characteristic->setValue(value);
    trip_duration_characteristic->notify();

Gibbz avatar Apr 16 '24 13:04 Gibbz

Your code looks fine, could you set the log level to debug and share logs of the notification being sent?

h2zero avatar Apr 20 '24 15:04 h2zero

Closing this as there has been no response, please reopen if still an issue.

h2zero avatar Jun 09 '24 00:06 h2zero