ios - 单个 BLE 中心能否通过低功耗蓝牙与多个 BLE 外设连接?

标签 ios bluetooth-lowenergy core-bluetooth cbperipheral cbcentralmanager

我在我的 iOS 应用程序项目中使用核心蓝牙框架。我有以下关于蓝牙低功耗的问题 -

  1. iOS 中单个中央设备是否可以连接多个外围设备?
  2. 多个中央设备可以与单个外围设备连接吗?
  3. 单个 iOS 设备可以同时充当中央设备和外围设备吗?
  4. 如果是,那么如果两个这样的设备尝试作为中央设备相互连接会发生什么?
  5. 当应用处于后台时,我们可以通过 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/

相关文章:

iphone - 有什么方法可以将此 map 转换为在 UIMapView 中工作吗?

ios - UIWebView 包装器与 native 组件

ios - audiokit 的波表参数

如果在蓝牙扫描期间滚动,则出现 java.lang.IllegalStateException

android - 蓝牙工作

ios - 在 iOS 上通过 BLE 发送数据时的最大数据大小

ios - 使用 xcode 中的 Core Plot 将 UIView 中的轴居中

android - samsung ble api 无法从多个 GATT 特性中获取通知

ios - 检查蓝牙状态 - Swift 4

macos - CoreBluetooth 扫描检测时间在 MacOS 上不可靠