kable icon indicating copy to clipboard operation
kable copied to clipboard

BLE devices disconnecting sporadically on Native

Open Phoenix7351 opened this issue 1 year ago • 1 comments

Logging shows:

API MISUSE: Cancelling connection for unused peripheral <CBPeripheral: 0x2816bc4e0, identifier = 23584B66-2C3C-09F2-CF3F-BC60BDA79D4B, name = JUUL2 QDA0N0U4, mtu = 23, state = connecting>, Did you forget to keep a reference to it?

This error comes from CoreBluetooth.

Haven't found much rhyme or reason for when it happens yet, but when it does the device will not reconnect--even on subsequent relaunches of the consuming app.

Phoenix7351 avatar Oct 25 '23 16:10 Phoenix7351

Just got more misuse logs. Now one for powered on state:

API MISUSE: Cancelling connection for unused peripheral <CBPeripheral: 0x2827fd5f0, identifier = 23584B66-2C3C-09F2-CF3F-BC60BDA79D4B, name = JUUL2 QDA0N0U4, mtu = 23, state = connecting>, Did you forget to keep a reference to it?

API MISUSE: <CBCentralManager: 0x282dff480> can only accept this command while in the powered on state

Phoenix7351 avatar Oct 25 '23 17:10 Phoenix7351