🪵 Removes serial logging

This commit is contained in:
Rune Harlyk
2024-06-09 14:10:53 +02:00
committed by Rune Harlyk
parent f62a8a38cb
commit 55347f1cac
7 changed files with 1 additions and 54 deletions
@@ -119,18 +119,12 @@ String MqttSettingsService::getLastError()
void MqttSettingsService::onMqttConnect(bool sessionPresent)
{
ESP_LOGI("MQTT", "Connected to MQTT: %s", _mqttClient.getMqttConfig()->uri);
#ifdef SERIAL_INFO
Serial.printf("Connected to MQTT: %s\n", _mqttClient.getMqttConfig()->uri);
#endif
_lastError = "None";
}
void MqttSettingsService::onMqttDisconnect(bool sessionPresent)
{
ESP_LOGI("MQTT", "Disconnected from MQTT.");
#ifdef SERIAL_INFO
Serial.println("Disconnected from MQTT.");
#endif
}
void MqttSettingsService::onMqttError(esp_mqtt_error_codes_t error)
@@ -173,9 +167,6 @@ void MqttSettingsService::configureMqtt()
// only connect if WiFi is connected and MQTT is enabled
if (_state.enabled && WiFi.isConnected())
{
#ifdef SERIAL_INFO
Serial.println("Connecting to MQTT...");
#endif
_mqttClient.setServer(retainCstr(_state.uri.c_str(), &_retainedHost));
if (_state.username.length() > 0)
{