mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-02-05 08:05:42 +00:00
Automatic reboot when MQTT is lost (#1058)
* Fixing board type overwrite, zmartcharge default issues and disabling entsoe * Fixed Zmartcharge configuration issue * Option to auto reboot if MQTT connection is lost
This commit is contained in:
@@ -16,11 +16,6 @@ public:
|
||||
#else
|
||||
JsonMqttHandler(MqttConfig& mqttConfig, Stream* debugger, char* buf, HwTools* hw, AmsDataStorage* ds, AmsFirmwareUpdater* updater) : AmsMqttHandler(mqttConfig, debugger, buf, updater) {
|
||||
#endif
|
||||
subTopic = String(mqttConfig.subscribeTopic);
|
||||
if(subTopic.isEmpty()) {
|
||||
String pubTopic = String(mqttConfig.publishTopic);
|
||||
subTopic = pubTopic+"/command";
|
||||
}
|
||||
this->hw = hw;
|
||||
this->ds = ds;
|
||||
};
|
||||
@@ -38,7 +33,6 @@ public:
|
||||
uint8_t getFormat();
|
||||
|
||||
private:
|
||||
String subTopic;
|
||||
HwTools* hw;
|
||||
AmsDataStorage* ds;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user