implement publish json for opener

This commit is contained in:
technyon
2022-08-13 13:07:17 +02:00
parent cfe9aa0d29
commit 6ecee1d345
7 changed files with 60 additions and 12 deletions

View File

@@ -59,7 +59,9 @@ private:
NukiOpener::OpenerState _lastKeyTurnerState;
NukiOpener::OpenerState _keyTurnerState;
char _lastLockAction[25] = { 0 };
uint32_t _lastAuthId = 0xffff;
char _lastAuthName[33] = {0};
NukiOpener::BatteryReport _batteryReport;
NukiOpener::BatteryReport _lastBatteryReport;
@@ -71,6 +73,7 @@ private:
bool _paired = false;
bool _statusUpdated = false;
bool _publishJson = false;
unsigned long _nextLockStateUpdateTs = 0;
unsigned long _nextBatteryReportTs = 0;
unsigned long _nextConfigUpdateTs = 0;