cordova-plugin-bluetoothle icon indicating copy to clipboard operation
cordova-plugin-bluetoothle copied to clipboard

canceling (disconnect() or close()) during a connect() process does not stop the connecting process.

Open MojioMS opened this issue 4 years ago • 0 comments

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.

MojioMS avatar Feb 16 '21 10:02 MojioMS