"Turn" Android 4.3 BLE oncharacteristicwrite No callback

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.