From 74b8852e00e8e92c947aa6a1f61eaa7ff4903ecc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xose=20P=C3=A9rez?= Date: Fri, 30 Dec 2016 22:17:09 +0100 Subject: [PATCH] Using default client_id from AsyncMqttClient, now for real --- code/espurna/mqtt.ino | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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());