我正在使用Core Bluetooth API编写iOS 7的测试应用程序。在测试应用程序时,我发现我正在收到以下警告消息:
TestBluetooth[626:60b] CoreBluetooth[API MISUSE]只有在开启状态下才能接受命令
后来我调试了应用程序并发现,警告消息是来自以下代码行:
[manager scanForPeripheralsWithServices:array options:scanOptions];
有没有人能告诉我为什么我在控制台中收到这条消息?
周围有蓝牙4.0的Android设备,但此应用程序未将其发现为外设。那么为什么它无法将蓝牙4.0 LE Android设备发现为外设呢?
CBCentralManager
的state
属性:https://developer.apple.com/library/ios/documentation/CoreBluetooth/Reference/CBCentralManager_Class/translated_content/CBCentralManager.html#//apple_ref/occ/instp/CBCentralManager/state - Larme