|
|
@@ -97,6 +97,8 @@ void Settings::patch(JsonObject& parsedSettings) {
|
|
|
this->setIfPresent(parsedSettings, "mqtt_topic_pattern", mqttTopicPattern);
|
|
|
this->setIfPresent(parsedSettings, "mqtt_update_topic_pattern", mqttUpdateTopicPattern);
|
|
|
this->setIfPresent(parsedSettings, "mqtt_state_topic_pattern", mqttStateTopicPattern);
|
|
|
+ this->setIfPresent(parsedSettings, "mqtt_lwt_topic", mqttLwtTopic);
|
|
|
+ this->setIfPresent(parsedSettings, "mqtt_lwt_message", mqttLwtMessage);
|
|
|
this->setIfPresent(parsedSettings, "discovery_port", discoveryPort);
|
|
|
this->setIfPresent(parsedSettings, "listen_repeats", listenRepeats);
|
|
|
this->setIfPresent(parsedSettings, "state_flush_interval", stateFlushInterval);
|
|
|
@@ -193,6 +195,8 @@ void Settings::serialize(Stream& stream, const bool prettyPrint) {
|
|
|
root["mqtt_topic_pattern"] = this->mqttTopicPattern;
|
|
|
root["mqtt_update_topic_pattern"] = this->mqttUpdateTopicPattern;
|
|
|
root["mqtt_state_topic_pattern"] = this->mqttStateTopicPattern;
|
|
|
+ root["mqtt_lwt_topic"] = this->mqttLwtTopic;
|
|
|
+ root["mqtt_lwt_message"] = this->mqttLwtMessage;
|
|
|
root["discovery_port"] = this->discoveryPort;
|
|
|
root["listen_repeats"] = this->listenRepeats;
|
|
|
root["state_flush_interval"] = this->stateFlushInterval;
|