Skip to content

Commit

Permalink
Logging feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
steadramon committed Oct 14, 2023
1 parent ec50a93 commit b74d070
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ESPGeiger/src/Mqtt/MQTT_Client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ void MQTT_Client::reconnect()
else
{
status.mqtt_connected = false;
Log::console(PSTR("MQTT: failed, rc=%i"), state());
Log::console(PSTR("MQTT: connection failed, rc=%i"), state());
}

}
Expand Down Expand Up @@ -342,10 +342,12 @@ void MQTT_Client::begin()

if (_mqtt_server == NULL) {
mqttEnabled = false;
Log::console(PSTR("MQTT: No server set"));
return;
}
if ((_mqtt_pass != NULL) && (_mqtt_user == NULL)) {
mqttEnabled = false;
Log::console(PSTR("MQTT: Please set username and password"));
return;
}

Expand Down

0 comments on commit b74d070

Please sign in to comment.