Reboot on BLE stuck disconnecting

This commit is contained in:
iranl
2024-12-27 22:41:49 +01:00
parent e002c4223e
commit 6fd0f38595
4 changed files with 14 additions and 1 deletions

View File

@@ -4071,6 +4071,11 @@ void NukiWrapper::notify(Nuki::EventType eventType)
{
_preferences->putInt(preference_lock_pin_status, 2);
}
else if(eventType == Nuki::EventType::BLE_ERROR_ON_DISCONNECT)
{
Log->println("Error in disconnecting BLE client, rebooting");
restartEsp(RestartReason::BLEError);
}
}
}
}