Skip to content
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

iphone短时间内发送多条数据问题 #225

Open
Hiphone-Du opened this issue May 14, 2020 · 0 comments
Open

iphone短时间内发送多条数据问题 #225

Hiphone-Du opened this issue May 14, 2020 · 0 comments

Comments

@Hiphone-Du
Copy link

Hiphone-Du commented May 14, 2020

短时间内多次调用writeValue:(NSData *)data forCharacteristic:,会导致后面的数据设备接收有些延迟。但是安卓发送这些命令,设备可以快速接收到。打印日志如下

我们的需求:连接设备成功之后,用户点击屏幕,发送蓝牙数据,所以可能用户短时间内快速发送多条数据。设备能快速收到手机发送的数据

writeValue======
writeValue======
----成功返回:(null)
writeValue======
----成功返回:(null)
writeValue======
writeValue======
----成功返回:(null)
writeValue======
writeValue======
writeValue======
writeValue======
----成功返回:(null)
writeValue======
writeValue======
writeValue======
writeValue======
----成功返回:(null)
writeValue======
writeValue======
writeValue======
writeValue======
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)
----成功返回:(null)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant