log lock action result to console
This commit is contained in:
@@ -31,7 +31,7 @@ file(GLOB SRCFILES
|
||||
lib/Crc16/Crc16.h
|
||||
lib/nuki_ble/src/NukiBle.cpp
|
||||
lib/nuki_ble/src/NukiConstants.h
|
||||
lib/nuki_ble/src/NukiDataTypes.cpp
|
||||
lib/nuki_ble/src/NukiDataTypes.h
|
||||
lib/nuki_ble/src/NukiUtils.cpp
|
||||
lib/nuki_ble/src/BleScanner.cpp
|
||||
lib/pubsubclient/src/PubSubClient.cpp
|
||||
|
||||
@@ -103,7 +103,14 @@ void NukiWrapper::update()
|
||||
|
||||
if(_nextLockAction != (Nuki::LockAction)0xff)
|
||||
{
|
||||
_nukiBle.lockAction(_nextLockAction, 0, 0);
|
||||
Nuki::CmdResult cmdResult = _nukiBle.lockAction(_nextLockAction, 0, 0);
|
||||
|
||||
char resultStr[15] = {0};
|
||||
Nuki::cmdResultToString(cmdResult, resultStr);
|
||||
|
||||
Serial.print(F("Lock action result: "));
|
||||
Serial.println(resultStr);
|
||||
|
||||
_nextLockAction = (Nuki::LockAction)0xff;
|
||||
if(_intervalLockstate > 10)
|
||||
{
|
||||
|
||||
Submodule lib/nuki_ble updated: 4d6828366f...7bb5d57d9e
Reference in New Issue
Block a user