We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
您好, 打印log: 2017-05-15 14:01:35.126650 BabyBluetoothAppDemo[1598:680455] (null) 2017-05-15 14:01:35.181769 BabyBluetoothAppDemo[1598:680455] viewDidLoad 2017-05-15 14:01:35.460185 BabyBluetoothAppDemo[1598:680455] viewDidAppear 2017-05-15 14:01:35.460501 BabyBluetoothAppDemo[1598:680455] >>>已切换到默认频道 2017-05-15 14:01:35.460875 BabyBluetoothAppDemo[1598:680455] >>> 第1次等待CBCentralManager打开 2017-05-15 14:01:35.469307 BabyBluetoothAppDemo[1598:680455] >>>CBCentralManagerStatePoweredOn 2017-05-15 14:01:35.475639 BabyBluetoothAppDemo[1598:680455] >>>CBCentralManagerStateUnsupported 2017-05-15 14:01:35.475898 BabyBluetoothAppDemo[1598:680455] >>>CBPeripheralManagerStatePoweredOn 2017-05-15 14:01:35.476196 BabyBluetoothAppDemo[1598:680455] >>>CBPeripheralManagerStatePoweredOn 2017-05-15 14:01:37.652845 BabyBluetoothAppDemo[1598:680497] >>> 第2次等待CBCentralManager打开 2017-05-15 14:01:39.848072 BabyBluetoothAppDemo[1598:680497] >>> 第3次等待CBCentralManager打开 2017-05-15 14:01:42.048046 BabyBluetoothAppDemo[1598:680497] >>> 第4次等待CBCentralManager打开 2017-05-15 14:01:44.214740 BabyBluetoothAppDemo[1598:680497] >>> 第5次等待CBCentralManager 打开任然失败,请检查你蓝牙使用权限或检查设备问题。
出现这种情况的代码如下: baby = [BabyBluetooth shareBabyBluetooth]; babyLV = [[BabyBluetooth alloc] init];
是不是说CBCentralManager只能创建一次?
The text was updated successfully, but these errors were encountered:
iphone4s以下,虚拟机都会出现这种情况,因为机器本身没有Bluetooth4.0设备
Sorry, something went wrong.
频繁的创建释放,会导致CBCentermanager生命周期混乱,可能出现存在多个CBCentermanager对象,结果第二个就失效了。 处理方法:在BabyCentralManager中提供私有API立即释放CBCentermanager,可以解决。
No branches or pull requests
您好,
打印log:
2017-05-15 14:01:35.126650 BabyBluetoothAppDemo[1598:680455] (null)
2017-05-15 14:01:35.181769 BabyBluetoothAppDemo[1598:680455] viewDidLoad
2017-05-15 14:01:35.460185 BabyBluetoothAppDemo[1598:680455] viewDidAppear
2017-05-15 14:01:35.460501 BabyBluetoothAppDemo[1598:680455] >>>已切换到默认频道
2017-05-15 14:01:35.460875 BabyBluetoothAppDemo[1598:680455] >>> 第1次等待CBCentralManager打开
2017-05-15 14:01:35.469307 BabyBluetoothAppDemo[1598:680455] >>>CBCentralManagerStatePoweredOn
2017-05-15 14:01:35.475639 BabyBluetoothAppDemo[1598:680455] >>>CBCentralManagerStateUnsupported
2017-05-15 14:01:35.475898 BabyBluetoothAppDemo[1598:680455] >>>CBPeripheralManagerStatePoweredOn
2017-05-15 14:01:35.476196 BabyBluetoothAppDemo[1598:680455] >>>CBPeripheralManagerStatePoweredOn
2017-05-15 14:01:37.652845 BabyBluetoothAppDemo[1598:680497] >>> 第2次等待CBCentralManager打开
2017-05-15 14:01:39.848072 BabyBluetoothAppDemo[1598:680497] >>> 第3次等待CBCentralManager打开
2017-05-15 14:01:42.048046 BabyBluetoothAppDemo[1598:680497] >>> 第4次等待CBCentralManager打开
2017-05-15 14:01:44.214740 BabyBluetoothAppDemo[1598:680497] >>> 第5次等待CBCentralManager 打开任然失败,请检查你蓝牙使用权限或检查设备问题。
出现这种情况的代码如下:
baby = [BabyBluetooth shareBabyBluetooth];
babyLV = [[BabyBluetooth alloc] init];
是不是说CBCentralManager只能创建一次?
The text was updated successfully, but these errors were encountered: