小编Nac*_*hum的帖子

<错误>:[CoreBluetooth] API MISUSE:取消未使用外设的连接

我的情景:

  1. 我杀了我的应用程序sigkill()- > app转到后台.
  2. 数据从BT设备发送,并且在调用时成功连接centralManager: willRestoreState:.
  3. 设备连接后,我将BT设备从应用程序范围和方法中取出 centralManager: didDisconnectPeripheral: error: is invoked with error code 6.
  4. 我尝试通过调用重新连接外围设备[_centralManager connectPeripheral:peripheral options:nil],然后我收到以下错误:

[CoreBluetooth] API MISUSE:取消未使用外设的连接,您是否忘记保留对它的引用?

这个错误是什么意思?

objective-c ios core-bluetooth

8
推荐指数
1
解决办法
8485
查看次数

标签 统计

core-bluetooth ×1

ios ×1

objective-c ×1