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

连接(或者发送)多个蓝牙设备需要的延时 #76

Open
kerry999 opened this issue Apr 22, 2019 · 0 comments
Open

连接(或者发送)多个蓝牙设备需要的延时 #76

kerry999 opened this issue Apr 22, 2019 · 0 comments

Comments

@kerry999
Copy link

我们需要连接3个蓝牙外设。发现3个连接请求间必须要延时1秒左右。太快了会失败。
连接后的给这3个蓝牙外设发数据也需要一个50ms左右的延时。
这样就要求app自己维护一个50ms的时钟线程(和一个1秒的时钟线程)。比较浪费资源。

感觉SDK应该在内部已经有这样比较快的时钟线程了,为啥不用buffer来接收这些action。然后按照一定的时间间隔来处理连接请求和发送请求?这样可以减少app不少的时钟线程开销。

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