Skip to content

Commit

Permalink
update #12
Browse files Browse the repository at this point in the history
  • Loading branch information
jkandasa authored Nov 16, 2017
1 parent c9fa92b commit 95ea3ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MyController.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95ea3ea

Please sign in to comment.