-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
请问下,回调只收到部分数据怎么解? #30
Comments
都会回的呀 |
确实是只收到了一条数据 |
我下了源码放到APP里,加了时间打印,看了间隔时间应该满足啊 D/BluetoothGatt: onNotify() - Device=50:33:8B:::** handle=21 |
是observer为空了,所以没有回调 |
之前observer为空是因为连接时没加,但是加了以后还是一样没回调第二条 D/BluetoothGatt: onNotify() - Device=50:33:8B:::** handle=21 |
我尝试在连接到时候设置了setBluetoothGattCallback,这样可以收到数据,但变成2个进程了,会造成我拼包那里出问题 |
加了线程锁之后就没问题了,但是observer没回调的应该还是要看看怎么解决吧? |
我验证了下,并没有出现你反馈的问题 |
看日志数据是全部接收到了的,但是回调只给了部分
D/BluetoothGatt: onNotify() - Device=50:33:8B:::** handle=21
D/EasyBLE: characteristic change! [UUID: 0000f1f2, addr: 50:33:8B:21:C3:5B, value: A5 07 10 00 00 20 20 30 31 2D 30 30 2E 32 2E 30 31 20 20 20]
D/BluetoothGatt: onNotify() - Device=50:33:8B:::** handle=21
D/EasyBLE: characteristic change! [UUID: 0000f1f2, addr: 50:33:8B:21:C3:5B, value: 20 1C BD 5A]
这个数据,第一条的数据有回调,第二条数据就没有
是因为这两条数据连发的原因吗?
The text was updated successfully, but these errors were encountered: