Why is my BLE Notification callback never called on Windows 8
I have a Bluetooth LE device with customizable specifications that send notifications to an Android device very accurately.
However, notifications are not accepted in Windows 8.1. I can open a connection to a device with CreateFile()
, turn on alerts with, BluetoothGattSetDEscriptorValue()
and register a callback function with no problem BluetoothGattRegisterEvent()
. However, the callback function used is never called unless I permanently set the "Values" value manually to keep the connection live using something like this:
while(1){
Sleep(1000);
// Write characteristic using BLuetoothGattSetCharacteristicValue()
}
Should it work like this? How can I call a callback when notifications are activated without having to manually initiate a connection?
source to share
No one has answered this question yet
Check out similar questions: