|
|
@@ -83,6 +83,7 @@ void Settings::patch(JsonObject parsedSettings) {
|
|
|
this->setIfPresent(parsedSettings, "mqtt_update_topic_pattern", mqttUpdateTopicPattern);
|
|
|
this->setIfPresent(parsedSettings, "mqtt_state_topic_pattern", mqttStateTopicPattern);
|
|
|
this->setIfPresent(parsedSettings, "mqtt_client_status_topic", mqttClientStatusTopic);
|
|
|
+ this->setIfPresent(parsedSettings, "simple_mqtt_client_status", simpleMqttClientStatus);
|
|
|
this->setIfPresent(parsedSettings, "discovery_port", discoveryPort);
|
|
|
this->setIfPresent(parsedSettings, "listen_repeats", listenRepeats);
|
|
|
this->setIfPresent(parsedSettings, "state_flush_interval", stateFlushInterval);
|
|
|
@@ -205,6 +206,7 @@ void Settings::serialize(Print& stream, const bool prettyPrint) {
|
|
|
root["mqtt_update_topic_pattern"] = this->mqttUpdateTopicPattern;
|
|
|
root["mqtt_state_topic_pattern"] = this->mqttStateTopicPattern;
|
|
|
root["mqtt_client_status_topic"] = this->mqttClientStatusTopic;
|
|
|
+ root["simple_mqtt_client_status"] = this->simpleMqttClientStatus;
|
|
|
root["discovery_port"] = this->discoveryPort;
|
|
|
root["listen_repeats"] = this->listenRepeats;
|
|
|
root["state_flush_interval"] = this->stateFlushInterval;
|