While connecting gets stuck in connecting state
Opened this issue · 0 comments
FahidDis commented
My normal pairing with device works fine but whenever the following scenario happens:
- User gets out of device's range
- Turns bluetooth off
- After coming back to range turns bluetooth on
Then upon calling BleDevice.connect() it gets stuck in BleDeviceState.CONNECTING state and eventually comes to BleDeviceState.DISCONNECTED state, never gets connected.
Why is this happening? How can i avoid this?