Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

notify not updating values in nRF Connect #658

Open
Gibbz opened this issue Apr 16, 2024 · 1 comment
Open

notify not updating values in nRF Connect #658

Gibbz opened this issue Apr 16, 2024 · 1 comment

Comments

@Gibbz
Copy link

Gibbz commented Apr 16, 2024

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();
@h2zero
Copy link
Owner

h2zero commented Apr 20, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants