究竟什么是iOS上的BLE连接设备? [英] What, exactly, is a BLE connected device on iOS?

查看:132
本文介绍了究竟什么是iOS上的BLE连接设备?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

CBCentralManager retrieveConnectedPeripherals 方法说它获得当前连接到系统的外围设备列表。系统的定义在这里有点含糊不清。

The CBCentralManager retrieveConnectedPeripherals method says it gets "the list of the peripherals currently connected to the system." 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的设备通常与CBCentralManager无限制地连接。什么是有界和无界连接,你可以从中知道链接
一个支持BLE 4.0的设备只能与一个主设备连接,从而增强了安全连接。你应该遵循这个链接
无论是在后台的前景,如果连接存在,BLE从设备都不会与其他应用或设备连接。

BLE 4.0 enabled devices are usually connected with CBCentralManager unboundly. 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. 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.

这篇关于究竟什么是iOS上的BLE连接设备?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆