publish lock state query command result

This commit is contained in:
technyon
2023-03-06 17:22:23 +01:00
parent bf3977b130
commit b5da2a5a52
8 changed files with 26 additions and 1 deletions

View File

@@ -272,6 +272,12 @@ void NukiOpenerWrapper::updateKeyTurnerState()
{
Log->print(F("Querying opener state: "));
Nuki::CmdResult result =_nukiOpener.requestOpenerState(&_keyTurnerState);
char resultStr[15];
memset(&resultStr, 0, sizeof(resultStr));
NukiOpener::cmdResultToString(result, resultStr);
_network->publishLockstateCommandResult(resultStr);
if(result != Nuki::CmdResult::Success)
{
_retryLockstateCount++;