Browse Source

Using default client_id from AsyncMqttClient, now for real

fastled
Xose Pérez 8 years ago
parent
commit
74b8852e00
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      code/espurna/mqtt.ino

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

@ -146,8 +146,7 @@ void mqttConnect() {
mqtt.setServer(host.c_str(), port.toInt());
mqtt
.setKeepAlive(MQTT_KEEPALIVE)
.setCleanSession(false)
.setClientId(getSetting("hostname", HOSTNAME).c_str());
.setCleanSession(false);
if ((user != "") && (pass != "")) {
DEBUG_MSG(" as user '%s'.\n", (char *) user.c_str());


Loading…
Cancel
Save