Change ESP8266 Json Buffer Size (#903)

768 causes core dump so go back to 512
This commit is contained in:
Florian authored and GitHub committed 2021-03-22 19:05:41 -05:00
1 parent d0489d1a85
commit 863a56b389
1 file changed
+6 -2
+6 -2
View File
@@ -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__)