publishh autodiscovery topics after reconnect

This commit is contained in:
technyon
2023-02-09 19:31:14 +01:00
parent 5c18b3233f
commit ac629b4e35
9 changed files with 52 additions and 3 deletions

View File

@@ -40,6 +40,8 @@ public:
void onMqttDataReceived(const char* topic, byte* payload, const unsigned int length) override;
bool reconnected();
private:
bool comparePrefixedPath(const char* fullPath, const char* subPath);
@@ -66,6 +68,7 @@ private:
bool _firstTunerStatePublish = true;
unsigned long _lastMaintenanceTs = 0;
bool _haEnabled= false;
bool _reconnected = false;
String _keypadCommandName = "";
String _keypadCommandCode = "";