Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Klaasjan on June 11, 2021, 08:13:19 PM

Title: Quick subscribe
Post 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
Title: Re: Quick subscribe
Post by: Mike Petrichenko on June 11, 2021, 08:21:44 PM
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.
Title: Re: Quick subscribe
Post by: Klaasjan on June 11, 2021, 08:25:06 PM
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
Title: Re: Quick subscribe
Post by: Mike Petrichenko on June 11, 2021, 08:34:35 PM
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()
Title: Re: Quick subscribe
Post by: Klaasjan on June 14, 2021, 08:01:56 AM
Hi,

Thanks. i will try it.