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

@@ -41,6 +41,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);
@@ -70,6 +72,8 @@ private:
bool _firstTunerStatePublish = true;
bool _haEnabled= false;
bool _reconnected = false;
String _keypadCommandName = "";
String _keypadCommandCode = "";
uint _keypadCommandId = 0;