1.centralManagerDidUpdateState代理方法还没有第一次被调用,就执行scanForPeripheralsWithServices方法,CBCentralManager还不知道你的蓝牙是否可用,所以无法扫描

2.在蓝牙关闭的情况下调用scanForPeripheralsWithServices方法

[CoreBluetooth] API MISUSE: can only accept this command while in the powered on state(iOS蓝牙)

相关文章:

  • 2022-02-05
  • 2022-12-23
  • 2022-01-06
  • 2021-12-26
  • 2021-12-02
  • 2022-01-12
  • 2022-01-11
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2021-06-15
  • 2021-10-25
  • 2022-01-26
  • 2022-12-23
相关资源
相似解决方案