I have an issue with my centralManger object, its working great I can connect and disconnect to a peripheral. Once I pair 2 peripherals, after half an hour (more or less..) the centralManger state becomes "CentralManagerStateResetting" which causes my peripherals to disconnect automatically and not call delegate: didDisconnectPeripheral.
This is from apple's documentation: @constant CBCentralManagerStateResetting The connection with the system service was momentarily lost, update imminent.
Seen in all iPhones and checked in version iOS 9+
Most propably this means that BTServer
crashed. Normally it recovers within a few seconds and the state should change to CBCentralManagerStatePoweredOn
again.
Check your device logs for output from BTServer
.
This can happen if there is a lot of load on the BLE stack and the system has to manage a lot of simultaneous connections to different peripherals.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With