Increased JSON buffer on 8266.

Minor tweaks.
This commit is contained in:
Blaz Kristan 2021-11-04 21:19:16 +01:00
parent 5cf26af9f0
commit 1bc15a8507
3 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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);

View File

@ -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