Wireless Communication Library Support Forum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Login
Register
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
Trying to get notifications from characteristic, errors out with 0x000510B6
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Trying to get notifications from characteristic, errors out with 0x000510B6 (Read 13772 times)
Leo1986
Guest
Trying to get notifications from characteristic, errors out with 0x000510B6
«
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.
Logged
Mike Petrichenko
Bluetooth Framework Developer
Administrator
Hero Member
Posts: 3675
Karma: 1000
Re: Trying to get notifications from characteristic, errors out with 0x000510B6
«
Reply #1 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;
Logged
Bluetooth Framework
IrDA Framework
Serial Framework
WiFi Framework
Leo1986
Guest
Re: Trying to get notifications from characteristic, errors out with 0x000510B6
«
Reply #2 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.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
Wireless Communication Library Support Forum
»
Frameworks
»
Bluetooth Framework
»
Trying to get notifications from characteristic, errors out with 0x000510B6
Sitemap
1
2
3
4
5
6
7