From 4ca8a4cf02ca7b31c739da6913463b67f3e07e28 Mon Sep 17 00:00:00 2001 From: Stephan Hadinger Date: Fri, 30 Oct 2020 16:46:57 +0100 Subject: [PATCH] Allow the use of TLS in MINIMAL if compiled with TLS --- tasmota/xdrv_02_mqtt.ino | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tasmota/xdrv_02_mqtt.ino b/tasmota/xdrv_02_mqtt.ino index 9d83588a4..fa80e53ff 100644 --- a/tasmota/xdrv_02_mqtt.ino +++ b/tasmota/xdrv_02_mqtt.ino @@ -608,10 +608,12 @@ void MqttReconnect(void) global_state.mqtt_down = 1; #ifdef FIRMWARE_MINIMAL +#ifndef USE_MQTT_TLS // Don't try to connect if MQTT requires TLS but TLS is not supported if (Settings.flag4.mqtt_tls) { return; } +#endif #endif AddLog_P(LOG_LEVEL_INFO, S_LOG_MQTT, PSTR(D_ATTEMPTING_CONNECTION));