add option to publish state as json

This commit is contained in:
technyon
2022-08-13 12:30:12 +02:00
parent a7797fc39e
commit cfe9aa0d29
7 changed files with 80 additions and 15 deletions

View File

@@ -21,6 +21,7 @@ public:
void update();
void publishKeyTurnerState(const NukiLock::KeyTurnerState& keyTurnerState, const NukiLock::KeyTurnerState& lastKeyTurnerState);
void publishStateAsJson(const char* action, const NukiLock::KeyTurnerState& keyTurnerState, const uint32_t authId, const char* authName);
void publishBinaryState(NukiLock::LockState lockState);
void publishAuthorizationInfo(const uint32_t authId, const char* authName);
void publishCommandResult(const char* resultStr);