From 8bfe38a1740bb1418027db38b3a11ec88ff9b228 Mon Sep 17 00:00:00 2001 From: DanielR92 Date: Thu, 11 Jul 2024 18:40:32 +0200 Subject: [PATCH] Update config.h for MQTT set EMC_ALLOW_NOT_CONNECTED_PUBLISH flag to 0 (https://www.emelis.net/espMqttClient/#compile-time-configuration) to avoid the memory exhaustion when disconnected. --- src/config/config.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/config/config.h b/src/config/config.h index 285f5fa2..6edaa831 100644 --- a/src/config/config.h +++ b/src/config/config.h @@ -6,6 +6,9 @@ #ifndef __CONFIG_H__ #define __CONFIG_H__ +// set EMC_ALLOW_NOT_CONNECTED_PUBLISH flag to 0 +// (https://www.emelis.net/espMqttClient/#compile-time-configuration) to avoid the memory exhaustion when disconnected. +#define EMC_ALLOW_NOT_CONNECTED_PUBLISH 0 // globally used #define DEF_PIN_OFF 255