From 5ac29a5f6276992e0b518eb79bc082e9d7b51c0b Mon Sep 17 00:00:00 2001 From: Adrian Scillato Date: Tue, 18 Jan 2022 13:36:59 -0300 Subject: [PATCH] Satisfy requirements when enabling MQTT TLS from user_config_override.h It is always needed to define `USE_TLS` if using `USE_MQTT_TLS`. The key `USE_TLS` is used inside the TLS_mini library (specifically at the top of WiFiClientSecureLightBearSSL.h). --- tasmota/tasmota_configurations.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tasmota/tasmota_configurations.h b/tasmota/tasmota_configurations.h index d57dc58de..8007fe24f 100644 --- a/tasmota/tasmota_configurations.h +++ b/tasmota/tasmota_configurations.h @@ -500,8 +500,7 @@ // -- MQTT - TLS - AWS IoT ------------------------ #ifdef USE_ZBBRIDGE_TLS // Enable TLS for ZbBridge #define USE_MQTT_TLS // Use TLS for MQTT connection (+34.5k code, +7.0k mem and +4.8k additional during connection handshake) - #define USE_MQTT_AWS_IOT_LIGHT // Enable MQTT for AWS IoT in light mode, with user/password instead of private certificate - #define USE_TLS // flag indicates we need to include TLS code + #define USE_MQTT_AWS_IOT_LIGHT // Enable MQTT for AWS IoT in light mode, with user/password instead of private certificate #endif // USE_ZBBRIDGE_TLS //#undef USE_KNX // Disable KNX IP Protocol Support @@ -940,7 +939,6 @@ #undef USE_BERRY //#undef USE_WEBCLIENT //#undef USE_WEBCLIENT_HTTPS -//#undef USE_TLS // needed for MQTT over TLS #endif // FIRMWARE_MINICUSTOM @@ -1047,4 +1045,8 @@ #define USE_UNISHOX_COMPRESSION // Add support for string compression #endif +#ifdef USE_MQTT_TLS // If TLS for MQTT is enabled: + #define USE_TLS // flag indicates we need to include TLS code +#endif // USE_MQTT_TLS + #endif // _TASMOTA_CONFIGURATIONS_H_