From 95ea3ea77a9cdb33c846c3f435ec57cea829f426 Mon Sep 17 00:00:00 2001 From: Jeeva Kandasamy Date: Thu, 16 Nov 2017 09:03:00 +0530 Subject: [PATCH] update #12 --- MyController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MyController.cpp b/MyController.cpp index eb4f28d..f381fa8 100644 --- a/MyController.cpp +++ b/MyController.cpp @@ -385,7 +385,7 @@ void MyController::checkMqtt() { #ifdef ENABLE_INFO MC_SERIAL.printf("MC[I]: MQTT authenticating as user:[%s]\n", _mqttUser); #endif - mqttClient.connect(WiFi.hostname().c_str(), _mqttUser, _mqttUser); + mqttClient.connect(WiFi.hostname().c_str(), _mqttUser, _mqttPwd); } if (mqttClient.connected()) { #ifdef ENABLE_INFO