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

分包数据? #1

Open
momtboy opened this issue Mar 25, 2020 · 2 comments
Open

分包数据? #1

momtboy opened this issue Mar 25, 2020 · 2 comments

Comments

@momtboy
Copy link

momtboy commented Mar 25, 2020

框架什么时候支持大于20字节数据的发送呢?

@unmagic
Copy link
Owner

unmagic commented Mar 27, 2020

小程序官方的建议:小程序不会对写入数据包大小做限制,但系统与蓝牙设备会限制蓝牙4.0单次传输的数据大小,超过最大字节数后会发生写入错误,建议每次写入不超过20字节。
所以我基于稳定使用的考虑,做了最多20字节的限制。
如果你们需要传超过20字节的数据,可以考虑拆分多次传输。

@weixiangyong
Copy link

在发送成功回调里继续发送剩余字节

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

3 participants