Bluetooth LE (4.0) How many centrals can connect to a peripheral?

╄→尐↘猪︶ㄣ 提交于 2019-12-04 13:47:32

According to article in AdaFruit

a BLE peripheral can only be connected to one central device (a mobile phone, etc.) at a time

This isn't going to be the answer you were exactly looking for but I believe it might help.

Instead of trying to handle many connections, implement Core Bluetooth in a way that gives the illusion that you are connected to 20+ devices at the same time. Here's one way to do this:

When you discover a new peripheral, hold onto its identifier as a NSUUID. When you have data to send to a specific peripheral retrieve the peripheral using the NSUUID, connect to it, send the data, and cancel the connection as quickly as possible.

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