Author Topic: Quick subscribe  (Read 13849 times)

Offline Klaasjan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Quick subscribe
« 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

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Quick subscribe
« Reply #1 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.

Offline Klaasjan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Quick subscribe
« Reply #2 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

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Quick subscribe
« Reply #3 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()

Offline Klaasjan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Quick subscribe
« Reply #4 on: June 14, 2021, 08:01:56 AM »
Hi,

Thanks. i will try it.

 

Sitemap 1 2 3 4 5 6 7