From 46e1ee422ab241e0f29cf006d67af3e00ec424bc Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Tue, 16 Mar 2021 17:41:50 -0500 Subject: [PATCH] Increase json buffer (#898) discovery msg and systomqtt require now a bigger buffer --- main/User_config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main/User_config.h b/main/User_config.h index fdb1809..3d421db 100755 --- a/main/User_config.h +++ b/main/User_config.h @@ -343,15 +343,15 @@ int lowpowermode = DEFAULT_LOW_POWER_MODE; //#define valueAsASubject true #if defined(ESP8266) || defined(ESP32) -# define JSON_MSG_BUFFER 512 // Json message max buffer size, don't put 1024 or higher it is causing unexpected behaviour on ESP8266 +# define JSON_MSG_BUFFER 768 // Json message max buffer size, don't put 1024 or higher it is causing unexpected behaviour on ESP8266 # define SIGNAL_SIZE_UL_ULL uint64_t # define STRTO_UL_ULL strtoull #elif defined(__AVR_ATmega2560__) || defined(__AVR_ATmega1280__) -# define JSON_MSG_BUFFER 512 // Json message max buffer size, don't put 1024 or higher it is causing unexpected behaviour on ESP8266 +# define JSON_MSG_BUFFER 512 // Json message max buffer size, don't put 1024 or higher # define SIGNAL_SIZE_UL_ULL uint64_t # define STRTO_UL_ULL strtoul #else // boards with smaller memory -# define JSON_MSG_BUFFER 64 // Json message max buffer size, don't put 1024 or higher it is causing unexpected behaviour on ESP8266 +# define JSON_MSG_BUFFER 64 // Json message max buffer size, don't put 1024 or higher # define SIGNAL_SIZE_UL_ULL uint32_t # define STRTO_UL_ULL strtoul #endif