Wireless Communication Library Support Forum
Frameworks => Bluetooth Framework => Topic started by: Klaasjan on June 11, 2021, 08:13:19 PM
-
Hi,
Is it possible to a quick subscribe, if you know de uuid from the service, characteristics and description and write the CCCD to get notification updates?
Regards
Klaasjan
-
Hi,
Yes, but you have to save all the attributes information. In fact, in GATT communication UUID means nothing, it is just for user. Internally only Handle matters. But for driver other information (for example, characteristic properties) is also important.
-
Hi ok,
So I need the handles of the service, characteristics en descriptor.
I think they are the same for e.g. all heartrate BLE devices?
And if i had this information how can i subscribe with one command?
Regards
Klaasjan
-
Yes, yo uhav to store all the structures exactly as they were returned by the reading methods.
No, they are not the same for ALL heartrate BLE devices. Even in one model line handles may be different.
Subsribe(), WriteCCCD()
-
Hi,
Thanks. i will try it.