Author Topic: Why error reading value characteristic heart reate measurement  (Read 3785 times)

Offline Klaasjan

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

Offline Klaasjan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Why error reading value characteristic heart reate measurement
« Reply #1 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?

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • Karma: 1000
    • Wireless Communication Libraries
Re: Why error reading value characteristic heart reate measurement
« Reply #2 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

Offline Klaasjan

  • Newbie
  • *
  • Posts: 11
  • Karma: 0
Re: Why error reading value characteristic heart reate measurement
« Reply #3 on: June 05, 2021, 04:36:57 PM »
Hi, Thank you for your reply. In the  mean time I got my hearrate shown.

 

Sitemap 1 2 3 4 5 6 7