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

Leo1986

  • Guest
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.

Offline Mike Petrichenko

  • Bluetooth Framework Developer
  • Administrator
  • Hero Member
  • *****
  • Posts: 3675
  • 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;

Leo1986

  • Guest
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