Fix saving MQTT port settings #12

This commit is contained in:
Robert Strouse 2023-04-01 13:33:28 -07:00
parent d239ce857a
commit 209a2d7960
7 changed files with 6 additions and 6 deletions

View file

@ -141,6 +141,7 @@ bool MQTTSettings::fromJSON(JsonObject &obj) {
this->parseValueString(obj, "username", this->username, sizeof(this->username));
this->parseValueString(obj, "password", this->password, sizeof(this->password));
this->parseValueString(obj, "rootTopic", this->rootTopic, sizeof(this->rootTopic));
if(obj.containsKey("port")) this->port = obj["port"];
return true;
}
bool MQTTSettings::save() {