diff --git a/wled00/const.h b/wled00/const.h index c2877f59..493e1763 100644 --- a/wled00/const.h +++ b/wled00/const.h @@ -288,7 +288,7 @@ // Size of buffer for API JSON object (increase for more segments) #ifdef ESP8266 - #define JSON_BUFFER_SIZE 9216 + #define JSON_BUFFER_SIZE 10240 #else #define JSON_BUFFER_SIZE 20480 #endif diff --git a/wled00/src/dependencies/json/AsyncJson-v6.h b/wled00/src/dependencies/json/AsyncJson-v6.h index 6577d89b..3f1ba442 100644 --- a/wled00/src/dependencies/json/AsyncJson-v6.h +++ b/wled00/src/dependencies/json/AsyncJson-v6.h @@ -93,7 +93,7 @@ class AsyncJsonResponse: public AsyncAbstractResponse { return _contentLength; } - size_t getSize() { return _jsonBuffer.size(); } + size_t getSize() { return _root.size(); } size_t _fillBuffer(uint8_t *data, size_t len){ ChunkPrint dest(data, _sentLength, len); diff --git a/wled00/wled.h b/wled00/wled.h index 3b818d8f..7db40c2a 100644 --- a/wled00/wled.h +++ b/wled00/wled.h @@ -8,7 +8,7 @@ */ // version code in format yymmddb (b = daily build) -#define VERSION 2111031 +#define VERSION 2111041 //uncomment this if you have a "my_config.h" file you'd like to use //#define WLED_USE_MY_CONFIG