Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: ericgholland on November 19, 2019, 06:54:19 PM

Title: scosche heart rate sensor - Client_OnCharacteristicChanged not firing
Post by: ericgholland on November 19, 2019, 06:54:19 PM
I am using your demo app. I am able to connect and subscribe to the heart rate 2A37 but I never get change notifications.
Title: Re: scosche heart rate sensor - Client_OnCharacteristicChanged not firing
Post by: Mike Petrichenko 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
Title: Re: scosche heart rate sensor - Client_OnCharacteristicChanged not firing
Post by: ericgholland on November 20, 2019, 03:11:31 AM
Thank you - works perfectly.
Title: Re: scosche heart rate sensor - Client_OnCharacteristicChanged not firing
Post by: Mike Petrichenko on November 20, 2019, 05:04:41 AM
You are very welcome.