Wireless Communication Library Support Forum

Frameworks => Bluetooth Framework => Topic started by: Leo1986 on April 12, 2020, 12:16:45 PM

Title: Trying to get notifications from characteristic, errors out with 0x000510B6
Post by: Leo1986 on April 12, 2020, 12:16:45 PM
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.
Title: Re: Trying to get notifications from characteristic, errors out with 0x000510B6
Post by: Mike Petrichenko on April 12, 2020, 01:33:07 PM
Hello,

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

Characteristic.Notification = false;
or
Characteristic .Indication = false;
Title: Re: Trying to get notifications from characteristic, errors out with 0x000510B6
Post by: Leo1986 on April 12, 2020, 02:28:52 PM
Ok, stupid me. I should have checked the characteristic object before posting. Thanks for the quick reply.