implement retry mechanic for opener

This commit is contained in:
technyon
2023-01-14 21:44:54 +01:00
parent a5c3e82cae
commit aeeae9573d
6 changed files with 52 additions and 9 deletions

View File

@@ -202,7 +202,7 @@ void NukiWrapper::update()
{
if(_retryCount < _nrOfRetries)
{
Log->print(F("Last command failed, retrying after "));
Log->print(F("Lock: Last command failed, retrying after "));
Log->print(_retryDelay);
Log->print(F(" milliseconds. Retry "));
Log->print(_retryCount + 1);
@@ -217,7 +217,7 @@ void NukiWrapper::update()
}
else
{
Log->println(F("Maximum number of retries exceeded, aborting."));
Log->println(F("Lock: Maximum number of retries exceeded, aborting."));
_network->publishRetry("failed");
_retryCount = 0;
_nextRetryTs = 0;