CBCentralManager:如何确定管理器扫描的外围设备

时间:2015-11-05 09:31:23

标签: ios cbcentralmanager cbperipheral

我想知道如何确定CBCentralManager正在扫描哪些外围设备而不使用其他变量,换言之,只能从CBCentralManager对象中进行扫描。

1 个答案:

答案 0 :(得分:1)

看起来CBCentralManager中唯一有用的API,retrievePeripherals:从iOS 9开始被完全删除。我猜Apple是因为一些模糊的安全问题(例如恶意软件扫描蓝牙设备利用?​​)而这样做了。

CBCentralManager中的替换retrievePeripheralsWithIdentifiers:需要应用程序已知的设备标识符列表。

相关问题