From 863a56b389165d90b5be361d3f69cbb63455c472 Mon Sep 17 00:00:00 2001 From: Florian <1technophile@users.noreply.github.com> Date: Mon, 22 Mar 2021 19:05:41 -0500 Subject: [PATCH] Change ESP8266 Json Buffer Size (#903) 768 causes core dump so go back to 512 --- main/User_config.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/main/User_config.h b/main/User_config.h index 3d421db..95274b8 100755 --- a/main/User_config.h +++ b/main/User_config.h @@ -342,8 +342,12 @@ int lowpowermode = DEFAULT_LOW_POWER_MODE; // uncomment the line below to integrate msg value into the subject when receiving //#define valueAsASubject true -#if defined(ESP8266) || defined(ESP32) -# define JSON_MSG_BUFFER 768 // Json message max buffer size, don't put 1024 or higher it is causing unexpected behaviour on ESP8266 +#if defined(ESP32) +# define JSON_MSG_BUFFER 768 +# define SIGNAL_SIZE_UL_ULL uint64_t +# define STRTO_UL_ULL strtoull +#elif defined(ESP8266) +# define JSON_MSG_BUFFER 512 // Json message max buffer size, don't put 768 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__)