我正在尝试在我的应用程序中估计信标范围。
但是,当应用程序在触发[beaconManager:didRangeBeacons:inRegion:]
方法后对信标进行范围设置时,它会输出“ CoreBluetooth [API MISUSE] CBCentralManager仅在处于开机状态时才能接受命令”进入调试控制台,而且我也无法连接到信标以更改某些内容我可以设置信标范围并读取不需要连接到信标的值,例如次要,主要,邻近等,但我还需要更改它们。
我怎么了
提前致谢!
最佳答案
我遇到了同样的问题。我怀疑这是Estimote SDK的错误。我设法通过调用startEstimoteBeaconsDiscoveryForRegion
方法来解决此问题(我相信可以继续打开CBCentralManager)。我的初始化代码如下:
_estBeaconManager = [[ESTBeaconManager alloc] init];
_estBeaconManager.delegate = self;
_estBeaconRegion = [[ESTBeaconRegion alloc] initWithProximityUUID:ESTIMOTE_PROXIMITY_UUID identifier:@"Estimotes"];
[_estBeaconManager startRangingBeaconsInRegion:_estBeaconRegion];
[_estBeaconManager startEstimoteBeaconsDiscoveryForRegion:_estBeaconRegion];
希望这可以帮助
关于ios - 尝试范围信标时出现“CoreBluetooth [API MISUSE] CBCentralManager仅在开机状态下接受命令”错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24177416/