Skip to content
This repository has been archived by the owner on Feb 27, 2019. It is now read-only.

Don't start/stop Bluetooth advertising if powered off #107

Open
cgst opened this issue Oct 14, 2015 · 1 comment
Open

Don't start/stop Bluetooth advertising if powered off #107

cgst opened this issue Oct 14, 2015 · 1 comment
Labels

Comments

@cgst
Copy link

cgst commented Oct 14, 2015

Attempting to

bluetoothManager.startAdvertising(nil)
bluetoothManager.stopAdvertising()

in triggerBluetoothStatusUpdate() outputs an error message on the iOS system console:

[CoreBluetooth] API MISUSE: <CBPeripheralManager: 0x15f1fb1a0> can only accept this command while in the powered on state

@bre7 bre7 added the bug label Oct 20, 2015
@nickoneill nickoneill added this to the 1.0.2 milestone Nov 28, 2015
@nickoneill
Copy link
Owner

This is only called if the peripheral state is Unknown which is exclusive of knowing if the peripheral is on/off. I don't see a huge issue here other than the error message, so punting this until we refactor bluetooth to pending status in #113.

@nickoneill nickoneill removed this from the 1.0.2 milestone Dec 21, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants