简体   繁体   English

究竟什么是iOS上的BLE连接设备?

[英]What, exactly, is a BLE connected device on iOS?

The CBCentralManager retrieveConnectedPeripherals method says it gets "the list of the peripherals currently connected to the system." CBCentralManager retrieveConnectedPeripherals方法表示它获得“当前连接到系统的外围设备列表”。 The definition of system is a bit ambiguous here. 系统的定义在这里有点含糊不清。

Does this mean I get a list of peripherals connected to my app, or a list of peripherals connected to any app? 这是否意味着我获得了连接到我的应用程序的外围设备列表,或连接到任何应用程序的外围设备列表?

If I can get peripherals connected to another app, does this also mean multiple apps can connect to the same peripheral? 如果我可以将外围设备连接到另一个应用程序,这是否也意味着多个应用程序可以连接到同一个外围设备?

Can this only happen if the app is in the foreground, or do I need to allow for the possibility that a background app is sending commands to a peripheral I think my app owns? 只有当应用程序位于前台时才会发生这种情况,或者我是否需要考虑后台应用程序向外围设备发送命令的可能性我认为我的应用程序拥有?

BLE 4.0 enabled devices are usually connected with CBCentralManager unboundly. 启用BLE 4.0的设备通常与CBCentralManager无限制地连接。 What is bounded and unbounded connection, you can know from this link . 什么是有界和无界连接,你可以从这个链接知道。 One BLE 4.0 enabled device can be connected with only one master device thus enhancing secured connectivity. 一个支持BLE 4.0的设备只能与一个主设备连接,从而增强了安全连接。 You should follow this link . 你应该点击这个链接 Whether in foreground of background, if the connection exists, the BLE slave device won't get connected with another app or device. 无论是在后台的前景,如果存在连接,BLE从设备将不会与另一个应用或设备连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM