Skip to content

Commit 5306ab1

Browse files
Nicolas Ledezhobinjk
Nicolas Ledez
authored andcommitted
Increase JSON buffer
1 parent 411443f commit 5306ab1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

ESP32WebThingAdapter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class WebThingAdapter {
9999
void handleThings(AsyncWebServerRequest *request) {
100100
AsyncResponseStream *response = request->beginResponseStream("application/json");
101101

102-
StaticJsonBuffer<1024> buf;
102+
StaticJsonBuffer<2048> buf;
103103
JsonArray& things = buf.createArray();
104104
ThingDevice* device = this->firstDevice;
105105
while (device != nullptr) {

ESP8266WebThingAdapter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class WebThingAdapter {
8989
}
9090

9191
void handleThings() {
92-
StaticJsonBuffer<1024> buf;
92+
StaticJsonBuffer<2048> buf;
9393
JsonArray& things = buf.createArray();
9494
ThingDevice* device = this->firstDevice;
9595
while (device != nullptr) {

WiFi101WebThingAdapter.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ class WebThingAdapter {
239239
sendOk();
240240
sendHeaders();
241241

242-
StaticJsonBuffer<1024> buf;
242+
StaticJsonBuffer<2048> buf;
243243
JsonArray& things = buf.createArray();
244244
ThingDevice* device = firstDevice;
245245
while (device != nullptr) {

0 commit comments

Comments
 (0)