美文网首页
iOS 蓝牙报[CoreBluetooth] API MISUS

iOS 蓝牙报[CoreBluetooth] API MISUS

作者: 帅聪哥 | 来源:发表于2021-08-20 18:23 被阅读0次

    在蓝牙连接的时候总是报这个错误,说实话只怪我们没有看英文文档,其实字面意思就是让我们把这个蓝牙对象给保存起来,就这么简单!

    - (void)centralManager:(CBCentralManager *)central didDiscoverPeripheral:(CBPeripheral *)peripheral advertisementData:(NSDictionary<NSString *, id> *)advertisementData RSSI:(NSNumber *)RSSI
    

    在搜索到设备的回调中,将需要连接的设备保存到数组中即可!

    相关文章

      网友评论

          本文标题:iOS 蓝牙报[CoreBluetooth] API MISUS

          本文链接:https://www.haomeiwen.com/subject/ntotiltx.html