show pairing and mqtt status in configuration page

This commit is contained in:
technyon
2022-03-27 19:55:42 +02:00
parent 7694cdb2fb
commit 9279257ce9
7 changed files with 39 additions and 5 deletions

View File

@@ -14,6 +14,8 @@ public:
void initialize();
void update();
bool isMqttConnected();
void publishKeyTurnerState(const char* state, const char* trigger, const char* completionStatus);
void publishBatteryReport(const BatteryReport& batteryReport);
@@ -32,6 +34,8 @@ private:
WiFiClient _wifiClient;
Preferences* _preferences;
bool _mqttConnected = false;
unsigned long _nextReconnect = 0;
char _mqttBrokerAddr[100] = {0};