You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Following error occurs in Xcode Output after disposing disposable from observeValueUpdateAndSetNotification() when bluetooth is Off:
2019-03-14 15:56:18.536575+0100 test[286:5547] [CoreBluetooth] API MISUSE: <CBPeripheral: 0x282835040, identifier = FCADF30F-882E-3766-212A-81915268838D, name = pL*****, state = disconnected> can only accept commands while in the connected state
2019-03-14 15:56:18.536898+0100 test[286:5547] [CoreBluetooth] API MISUSE: <CBCentralManager: 0x280c407c0> can only accept this command while in the powered on state
To Reproduce
Steps to reproduce the behavior:
Connect to BLE device
Discover services and Characteristics
Call observeValueUpdateAndSetNotification(), subscribe to it and store its disposable (observeDisposable)
Turn Off Bluetooth in Control Center
observeDisposable?.dispose() = Dispose disposable from observeValueUpdateAndSetNotification() (performed in .observeConnection().filter{ !$0 })
Expected behavior
No Errors in XCode Output
Environment:
Device: iPhone SE
OS: 12.1.4 (build 16D57)
Library version: 5.1.4
Swift version: 4.2.1
The text was updated successfully, but these errors were encountered:
Describe the bug
Following error occurs in Xcode Output after disposing disposable from observeValueUpdateAndSetNotification() when bluetooth is Off:
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No Errors in XCode Output
Environment:
The text was updated successfully, but these errors were encountered: