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

@@ -288,6 +288,12 @@ void NukiWrapper::updateKeyTurnerState()
{
Log->print(F("Querying lock state: "));
Nuki::CmdResult result =_nukiLock.requestKeyTurnerState(&_keyTurnerState);
char resultStr[15];
memset(&resultStr, 0, sizeof(resultStr));
NukiLock::cmdResultToString(result, resultStr);
_network->publishLockstateCommandResult(resultStr);
if(result != Nuki::CmdResult::Success)
{
_retryLockstateCount++;