How to Subscribe to a Notify BLE (NIMBLE)

divraj
Posts: 4
Joined: Tue Dec 29, 2020 11:58 pm

How to Subscribe to a Notify BLE (NIMBLE)

Postby divraj » Thu Jun 24, 2021 10:29 am

Hi I am trying to use the NimBLE stack to listen to a BLE device which updates its notify characteristics every second. I am able to search for the service and characteristics, however I am able to find any api reference for me subscribe to notify characteristics and listen to the events.

Is this possible? Can you give me an example?

alexshield
Posts: 2
Joined: Thu Jul 29, 2021 3:41 am

Re: How to Subscribe to a Notify BLE (NIMBLE)

Postby alexshield » Thu Jul 29, 2021 4:18 am

You should use CCCD of this CHARECTERISTICS to subscribe for notifications.

Who is online

Users browsing this forum: No registered users and 84 guests