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
Access of CCCD value per each bonded device
Access of CCCD value per each bonded device
Regards,
Mihir Tailor
Mihir Tailor
Re: Access of CCCD value per each bonded device
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.
Who is online
Users browsing this forum: ok-home and 110 guests