Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Klaasjan on June 04, 2021, 04:51:19 PM

Title: Why error reading value characteristic heart reate measurement
Post by: Klaasjan on June 04, 2021, 04:51:19 PM
Hi,

i'm playing with the demo software, i think the library is pretty awesome.
But i have an issue reading a heartrate measurement.  When i push the button "Get value" of the characteristic_heart_rate_measurement. I got an error 0x00051020. What am i doing wrong?

Can any one help on the right way with that?

Regars
Klaasjan
Title: Re: Why error reading value characteristic heart reate measurement
Post by: Klaasjan on June 04, 2021, 05:06:01 PM
I found the solution, i had to subscribe en write CCCD.

Only thing i do not understand yet, is why very quick I got a message disconnect.

Anyone a Idea?
Title: Re: Why error reading value characteristic heart reate measurement
Post by: Mike Petrichenko on June 04, 2021, 07:39:54 PM
Hi,

Error 0x00051020 (WCL_E_BLUETOOTH_LE_CHARACTERISTIC_NOT_READABLE) means The characteristic value is not readable as dictated by the characteristic properties. (https://www.btframework.com/errors.htm) You can not read from such characteristics. However (as you wrote) it may be Notifiable or Indicatable.

You can find detailed information about using Bluetooth Framework with GATT devices by this link: https://www.btframework.com/gatt.htm

About disconnection. Take a lookj on this forum post: https://forum.btframework.com/index.php?topic=3875.0
Title: Re: Why error reading value characteristic heart reate measurement
Post by: Klaasjan on June 05, 2021, 04:36:57 PM
Hi, Thank you for your reply. In the  mean time I got my hearrate shown.