cordova-plugin-bluetoothle
cordova-plugin-bluetoothle copied to clipboard
canceling (disconnect() or close()) during a connect() process does not stop the connecting process.
When calling connect()
and while not established a successful connection, the connecting process can not be cancelled with disconnect()
or close()
. disconnect()
and close()
do prevent connect()`s future callbacks from being triggered/forwarded, but they do not really stop the connecting process.
Tested on various Android devices.
Shouldn't close()
also the stop any connecting processes as stated in the documentation "the connection attempt should be canceled using disconnect()
"?
Hence, our customers currently can only cancel a connection attempt while the device is still scanning for the right result and before the connect()
is called.