Skip to content

Commit

Permalink
Fix #19
Browse files Browse the repository at this point in the history
  • Loading branch information
marvinroger committed Feb 9, 2016
1 parent b895198 commit de3bdfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Homie/Boot/BootNormal.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ void BootNormal::_mqttConnect() {

bool connectResult;
if (Config.get().mqtt.auth) {
connectResult = this->_shared_interface->mqtt->connect(client_id, topic, 2, true, "false");
} else {
connectResult = this->_shared_interface->mqtt->connect(client_id, Config.get().mqtt.username, Config.get().mqtt.password, topic, 2, true, "false");
} else {
connectResult = this->_shared_interface->mqtt->connect(client_id, topic, 2, true, "false");
}

if (connectResult) {
Expand Down

0 comments on commit de3bdfe

Please sign in to comment.