Skip to content

Commit

Permalink
improve logging
Browse files Browse the repository at this point in the history
  • Loading branch information
bertmelis committed May 30, 2023
1 parent d9b7ef4 commit 62d4e53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/espMqttManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,12 +257,11 @@ void waitForDisconnectFinal() {
void onMqttClientConnected(bool sessionPresent) {
interval = 0;
if (state == waitForMqtt) {
emm_log_i("Connected to MQTT (session: %s)", sessionPresent ? "y" : "n");
if (sessionPresent) {
emm_log_i("Connected to MQTT");
state = connected;
onMqttConnected();
} else {
emm_log_i("Connected to MQTT, no session present");
state = setupSession;
onSetupSession();
}
Expand Down

0 comments on commit 62d4e53

Please sign in to comment.