Skip to content

Commit

Permalink
log the uncatched MQTT connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
CaCO3 committed Oct 6, 2024
1 parent 775f9dc commit b34fdd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/components/jomjol_mqtt/interface_mqtt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ static esp_err_t mqtt_event_handler_cb(esp_mqtt_event_handle_t event) {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Connection refused, not authorized. Check username/password (0x05)");
}
else {
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Other event id:" + event->error_handle->connect_return_code);
LogFile.WriteToFile(ESP_LOG_ERROR, TAG, "Other event id:" + std::to_string(event->error_handle->connect_return_code));
ESP_LOGE(TAG, "Other event id:%d", event->error_handle->connect_return_code);
}

Expand Down

0 comments on commit b34fdd9

Please sign in to comment.