每5ms调用一次performPeriodicTask(),在performPeriodicTask()里处理了比较多的事情,包括使用notify将数据发送出去,实验中,发现蓝牙连上后,过了一小会马上断开,然后将performPeriodicTask()中的一些长时间任务注释掉一部分,蓝牙就能正常工作。
要让蓝牙正常工作,一个任务的处理时间难道不能太长?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
每5ms调用一次performPeriodicTask(),在performPeriodicTask()里处理了比较多的事情,包括使用notify将数据发送出去,实验中,发现蓝牙连上后,过了一小会马上断开,然后将performPeriodicTask()中的一些长时间任务注释掉一部分,蓝牙就能正常工作。
要让蓝牙正常工作,一个任务的处理时间难道不能太长?