Author Topic: scosche heart rate sensor - Client_OnCharacteristicChanged not firing  (Read 6608 times)

ericgholland

  • Guest
I am using your demo app. I am able to connect and subscribe to the heart rate 2A37 but I never get change notifications.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: scosche heart rate sensor - Client_OnCharacteristicChanged not firing
« Reply #1 on: November 19, 2019, 06:58:13 PM »
Hi,

To be able to receive notification it is no enought to just "subscribe". You also have to tell your device that you are interested in notifications. To do that you must write Client Configuration Descriptor. In GattClientDemo app just click Write CCD subscribe button.

You can find more information about GATT notifications by this link: https://www.btframework.com/ble.htm#CharacteristicValueChangeNotifications

ericgholland

  • Guest
Re: scosche heart rate sensor - Client_OnCharacteristicChanged not firing
« Reply #2 on: November 20, 2019, 03:11:31 AM »
Thank you - works perfectly.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: scosche heart rate sensor - Client_OnCharacteristicChanged not firing
« Reply #3 on: November 20, 2019, 05:04:41 AM »
You are very welcome.

 

Sitemap 1 2 3 4 5 6 7