mirror of
https://github.com/UtilitechAS/amsreader-firmware.git
synced 2026-03-01 01:39:55 +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:
@@ -1811,6 +1811,15 @@ void configFileParse() {
|
||||
} else if(strncmp_P(buf, PSTR("mqttSsl "), 8) == 0) {
|
||||
if(!lMqtt) { config.getMqttConfig(mqtt); lMqtt = true; };
|
||||
mqtt.ssl = String(buf+8).toInt() == 1;;
|
||||
} else if(strncmp_P(buf, PSTR("mqttTimeout "), 12) == 0) {
|
||||
if(!lMqtt) { config.getMqttConfig(mqtt); lMqtt = true; };
|
||||
mqtt.timeout = String(buf+12).toInt();
|
||||
} else if(strncmp_P(buf, PSTR("mqttKeepalive "), 14) == 0) {
|
||||
if(!lMqtt) { config.getMqttConfig(mqtt); lMqtt = true; };
|
||||
mqtt.keepalive = String(buf+14).toInt();
|
||||
} else if(strncmp_P(buf, PSTR("mqttRebootMinutes "), 18) == 0) {
|
||||
if(!lMqtt) { config.getMqttConfig(mqtt); lMqtt = true; };
|
||||
mqtt.rebootMinutes = String(buf+18).toInt();
|
||||
} else if(strncmp_P(buf, PSTR("webSecurity "), 12) == 0) {
|
||||
if(!lWeb) { config.getWebConfig(web); lWeb = true; };
|
||||
web.security = String(buf+12).toInt();
|
||||
|
||||
Reference in New Issue
Block a user