Page 1 of 1

Access of CCCD value per each bonded device

Posted: Sun Aug 11, 2019 10:52 am
by mihir_t
Hi all,

As par Bluetooth Core Spec 4.2, each bonded device has its instantiation of Client Characteristic Configuration Descriptor.
"The Client Characteristic Configuration descriptor value shall be persistent across connections for bonded devices."
"Each client has its own instantiation of the Client Characteristic Configuration. Reads of the Client Characteristic Configuration only shows the configuration for that client and writes only affect the configuration of that client".

On ESP-IDF v3.2, i need to access the CCCD value for each bonded device after connecting with BLE server application.
Based on the CCCD value per connection, i have to control the notification on BLE server.

So kindly suggest some way to access it.

Regards,
Mihir Tailor

Re: Access of CCCD value per each bonded device

Posted: Wed Aug 14, 2019 8:52 pm
by chegewara
You have to track CCCD value for every connected client device, for example create structure that will keep CCCDs values and client address. When you want/need to send notification/indication just check if client registered for it. But this is only required if you are working on battery and want to use less power, because even if you send notification to all connected clients each client shall discard notification if didnt register for it.