我在我的 iOS 应用程序项目中使用核心蓝牙框架。我有以下关于蓝牙低功耗的问题 -
- iOS 中单个中央设备是否可以连接多个外围设备?
- 多个中央设备可以与单个外围设备连接吗?
- 单个 iOS 设备可以同时充当中央设备和外围设备吗?
- 如果是,那么如果两个这样的设备尝试作为中央设备相互连接会发生什么?
- 当应用处于后台时,我们可以通过 BLE 进行通信吗?
最佳答案
Is it possible for a single central to connect multiple peripherals in iOS?
是的。
Can multiple central device connect with a single peripheral?
这完全取决于外围设备是否支持它(但对于大多数常见的嵌入式设备来说,不支持)。
Can a single iOS device act as central as well as peripheral at the same time?
是的。
If yes, then what will happen if both of 2 such devices try to connect as central to each other?
他们通常会连接两次。在一种联系中,一个是中心的,一个是外围的。另一方面,则相反。这是一种非常不寻常的系统设计方式,但它是合法的通常会起作用,尽管它是非法的(请参阅下面 Youssif 的评论以供引用)。
Can we communicate via BLE when the app is in background?
是的,但有各种限制。
关于ios - 单个 BLE 中心能否通过低功耗蓝牙与多个 BLE 外设连接?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54579999/