Original URL: http://bbs.csdn.net/topics/390882717?page=1
1. I have a timer in my own program to go to readcharacteristic, each time read can be successful, but in the process after the call writecharacteristic found that the BLE device did not receive the set of data, Do not perform oncharacteristicwrite this callback, put the timer off do not execute readcharacteristic, only perform writecharacteristic, you can set the success, You can also receive oncharacteristicwrite, is it possible to ask someone to meet this situation? How to solve, it seems that read and write can not be done at the same time, I separate the thread to let these two operations separate, or will be set not successful, please expert guidance under
Question 2. Notify information sent by the device I can not trigger oncharacteristicchanged here, I have setcharacteristicnotification to true, and descriptor also set the Enable, Or can not receive, how to set it?? Has anyone ever done ble related, leave a QQ bar
I also encountered a oncharacteristicchanged not triggering the problem, triggered by the time delay 500
Handler.postdelayed (New Runnable () {
@Override
public void Run () {
TODO auto-generated Method Stub
Logutil.showmessage ("Enablenoti notice");
Mbluetoothleservice.enablenoti ();
}
}, 500);
"Turn" Android 4.3 BLE oncharacteristicwrite No callback