This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to get Handle of CCCD

Hello,

I have build a gatt server device and my application is setup following the tutorials, which are really helpful by the way.

Now I want to check if the notifications are enabled or not. After search in the dev zone I found that i must use the sd_ble_gatts_value_get function. The problem is that it needs the handle of the cccd as an input argument. I have saved all services handles and each characteristic handle as the tutorials recommended. but I cannot find a cccd handle being returned anywhere.

Any suggestions?

Related