mirror of
https://github.com/rstrouse/ESPSomfy-RTS.git
synced 2025-12-13 02:52:11 +01:00
Fix saving MQTT port settings #12
This commit is contained in:
parent
d239ce857a
commit
209a2d7960
7 changed files with 6 additions and 6 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue