【问题标题】:CBCentralManager: how to determine which peripheral is the manager scanning forCBCentralManager:如何确定管理器正在扫描哪个外围设备
【发布时间】:2016-02-06 01:42:01
【问题描述】:

我想知道如何确定 CBCentralManager 正在扫描哪些外围设备不使用其他变量,换句话说,仅来自 CBCentralManager 对象。

【问题讨论】:

    标签: ios cbcentralmanager cbperipheral


    【解决方案1】:

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

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-10-12
      • 2013-12-13
      • 2021-06-08
      • 2019-04-30
      • 2016-05-06
      • 1970-01-01
      相关资源
      最近更新 更多