Index: sources/bluetooth/BluetoothInterface.cpp =================================================================== diff -u -r45e753bb6f0ffde4ebdb60f6658cbccdd440957f -rfb6d2ffcfd44a933380b21784bfaf5c827ec811d --- sources/bluetooth/BluetoothInterface.cpp (.../BluetoothInterface.cpp) (revision 45e753bb6f0ffde4ebdb60f6658cbccdd440957f) +++ sources/bluetooth/BluetoothInterface.cpp (.../BluetoothInterface.cpp) (revision fb6d2ffcfd44a933380b21784bfaf5c827ec811d) @@ -596,6 +596,19 @@ */ void BluetoothInterface::onDeviceError(QLowEnergyController::Error vError) { + bool isErrorUnknown = (vError == QLowEnergyController::UnknownError); + if ( isErrorUnknown ) { + // When polling to reconnect to the remote device, the application encounters an unknown + // error occasionally when the connection fails, but does not report it as a connection error + + bool isLocalAndDeviceValid = isLocalValid() && isDeviceValid(); + if ( isLocalAndDeviceValid && ( _local->pairingStatus(_device->remoteAddress()) != QBluetoothLocalDevice::Unpaired ) ) { + // Code is opting to set _reconnectionActive to true to allow polling to continue since the device + // is still paired and the error encountered is due to not being able to connect to the remote device. + _reconnectionActive = true; + } + } + // if the device is trying to connect to the previously paired device and the device was not on at this moment it should go to the reconnection state. if ( _tryingrepairActive ) _reconnectionActive = true;