cordova-plugin-bluetoothle
cordova-plugin-bluetoothle copied to clipboard
Infinite loop if bond is erased on peripheral side.
If I delete the bond memory on my peripheral device (but not on my Android or iOS central device), then the connection is broken. That much is expected.
But then it seems like the central device doesn't know that it should erase it's own bond and start a new pairing request. The central just fails to connect with no indication of what is wrong. And worse, if autoconnect:true is enabled, the central just keeps trying to connect and reconnect forever.
Is it possible to detect this condition and return a unique error code so I can present the user with instructions to go into the OS settings and "Forget" the device before retry connect?