mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-08-02 18:34:28 +02:00
Fix mqtt host still exist on local when on server is disabled
This commit is contained in:
@@ -739,7 +739,13 @@ bool Configuration::parse(String data, bool isLocal) {
|
|||||||
jsonInvalid();
|
jsonInvalid();
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
else if (JSON.typeof_(root[jprop_mqttBrokerUrl]) == "null" and !isLocal) {
|
||||||
|
// So if its not available on the json and json comes from aigradient server
|
||||||
|
// then set its value to default (empty)
|
||||||
|
jconfig[jprop_mqttBrokerUrl] = jprop_mqttBrokerUrl_default;
|
||||||
|
}
|
||||||
|
else {
|
||||||
if (jsonTypeInvalid(root[jprop_mqttBrokerUrl], "string")) {
|
if (jsonTypeInvalid(root[jprop_mqttBrokerUrl], "string")) {
|
||||||
failedMessage =
|
failedMessage =
|
||||||
jsonTypeInvalidMessage(String(jprop_mqttBrokerUrl), "string");
|
jsonTypeInvalidMessage(String(jprop_mqttBrokerUrl), "string");
|
||||||
|
Reference in New Issue
Block a user