allow configure query interval via web server

This commit is contained in:
technyon
2022-03-27 12:15:09 +02:00
parent ba864e0b67
commit a8ce3fc44c
7 changed files with 80 additions and 48 deletions

5
Nuki.h
View File

@@ -7,7 +7,7 @@
class Nuki
{
public:
Nuki(const std::string& name, uint32_t id, Network* network);
Nuki(const std::string& name, uint32_t id, Network* network, Preferences* preferences);
void initialize();
void update();
@@ -23,6 +23,9 @@ private:
NukiBle _nukiBle;
Network* _network;
Preferences* _preferences;
int _intervalLockstate = 0; // seconds
int _intervalBattery = 0; // seconds
KeyTurnerState _lastKeyTurnerState;
KeyTurnerState _keyTurnerState;