From ff979d368afa37b51852b682e8bd2ee276cc6875 Mon Sep 17 00:00:00 2001 From: TD-er Date: Mon, 16 Dec 2024 21:42:09 +0100 Subject: [PATCH] [Build] Fix building ESP8266 builds --- src/src/DataStructs/Web_StreamingBuffer.cpp | 2 ++ src/src/ESPEasyCore/Controller.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/src/DataStructs/Web_StreamingBuffer.cpp b/src/src/DataStructs/Web_StreamingBuffer.cpp index 4c47871300..41203f8d7c 100644 --- a/src/src/DataStructs/Web_StreamingBuffer.cpp +++ b/src/src/DataStructs/Web_StreamingBuffer.cpp @@ -222,7 +222,9 @@ void Web_StreamingBuffer::startStream(bool allowOriginAll, buf.clear(); buf.reserve(CHUNKED_BUFFER_SIZE); web_server.client().setNoDelay(true); +#ifdef ESP32 web_server.client().setSSE(false); +#endif if (beforeTXRam < 3000) { lowMemorySkip = true; diff --git a/src/src/ESPEasyCore/Controller.cpp b/src/src/ESPEasyCore/Controller.cpp index 6d2c085779..16ae6c8063 100644 --- a/src/src/ESPEasyCore/Controller.cpp +++ b/src/src/ESPEasyCore/Controller.cpp @@ -204,9 +204,10 @@ bool MQTTConnect(controllerIndex_t controller_idx) // mqtt = WiFiClient(); // workaround see: https://github.com/esp8266/Arduino/issues/4497#issuecomment-373023864 delay(0); +# if FEATURE_MQTT_TLS + uint16_t mqttPort = ControllerSettings->Port; -# if FEATURE_MQTT_TLS mqtt_tls_last_errorstr.clear(); mqtt_tls_last_error = 0; const TLS_types TLS_type = ControllerSettings->TLStype();