Browse Source

Show default MQTT user and password in WebUI

rfm69
Maxim Prokhorov 6 years ago
parent
commit
98a53941ba
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      code/espurna/mqtt.ino

+ 2
- 2
code/espurna/mqtt.ino View File

@ -304,9 +304,9 @@ void _mqttWebSocketOnSend(JsonObject& root) {
root["mqttEnabled"] = mqttEnabled();
root["mqttServer"] = getSetting("mqttServer", MQTT_SERVER);
root["mqttPort"] = getSetting("mqttPort", MQTT_PORT);
root["mqttUser"] = getSetting("mqttUser");
root["mqttUser"] = getSetting("mqttUser", MQTT_USER);
root["mqttClientID"] = getSetting("mqttClientID");
root["mqttPassword"] = getSetting("mqttPassword");
root["mqttPassword"] = getSetting("mqttPassword", MQTT_PASS);
root["mqttKeep"] = _mqtt_keepalive;
root["mqttRetain"] = _mqtt_retain;
root["mqttQoS"] = _mqtt_qos;


Loading…
Cancel
Save