Sending image file over Bluetooth 4.0 LE

左心房为你撑大大i 提交于 2019-11-28 18:54:25

On iOS 6, BLE allows you to send around 20 byte chunks of data. For an example of how you can slice up the data to be sent and how to use notifications based transmission, download the BTLE Transfer Apple Example application.

To get a better understanding of what speeds you can achieve, I suggest you analyze this diagram http://www.scriptreactor.com/conn_interval-throughput.pdf It shows the achievable speeds as a function of connection interval. iOS does not give you such a fine grained control but this info is still valuable for you to calculate with.

BTLE is significantly limited in terms of the amount of data that can be sent both in the characteristics and in any data packet. You should make the connection between the devices and then split the image data up and send multiple small packets. The 2013 WWDC videos will provide you a good overview and code samples.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!