Author Topic: Trying to get notifications from characteristic, errors out with 0x000510B6  (Read 414 times)

Offline Leo1986

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Hello Mike,

Happy Easter. :)

I am trying to get notifications from a BLE device. Yet when I call the Subscribe method, it always errors out with the above error. From what I understand, this happens if the Indicate and Notify properties of the characteristic are both true. However, I can get notifications on various gatt-client android apps just fine. What is happening here? Is there any way to disable this validation or work around it?

Thanks.

Online Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3524
  • Karma: 1000
    • Wireless Communication Libraries
Hello,

Set one of the property to false before call Subscribe(). Something like this:

Characteristic.Notification = false;
or
Characteristic .Indication = false;

Offline Leo1986

  • Newbie
  • *
  • Posts: 16
  • Karma: 0
Ok, stupid me. I should have checked the characteristic object before posting. Thanks for the quick reply.

 

Sitemap 1 2 3 4 5 6 7 8 9 10 11 12 13 14