diff --git a/code/espurna/mqtt.ino b/code/espurna/mqtt.ino index bedbf90d..6e5a4fb7 100644 --- a/code/espurna/mqtt.ino +++ b/code/espurna/mqtt.ino @@ -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());