Fixed bug

This commit is contained in:
Gunnar Skjold
2023-12-24 06:30:36 +01:00
parent 8e65f1fe14
commit 1775d0abce
2 changed files with 2 additions and 2 deletions

View File

@@ -56,7 +56,7 @@ public:
statusTopic = F("homeassistant/status");
discoveryTopic = F("homeassistant/sensor/");
}
// strcpy(this->mqttConfig.subscribeTopic, statusTopic.c_str());
strcpy(this->mqttConfig.subscribeTopic, statusTopic.c_str());
};
bool publish(AmsData* data, AmsData* previousState, EnergyAccounting* ea, EntsoeApi* eapi);