webserver: removing JSON_BUFFER_SIZE for esp32

the default buffer is 16Kb, which should be sufficient.
With PSRAM enabled, we habe JSON_BUFFER_SIZE up to 60Kb.
This commit is contained in:
Frank
2023-06-01 23:12:45 +02:00
parent dc77c172b2
commit 0f45b4f04a

View File

@@ -224,9 +224,16 @@ void initServer()
} else {
doSerializeConfig = true; //serializeConfig(); //Save new settings to FS
}
//#ifdef ARDUINO_ARCH_ESP32
//DEBUG_PRINTF("%s min free stack %d\n", pcTaskGetTaskName(NULL), uxTaskGetStackHighWaterMark(NULL)); //WLEDMM
//#endif
}
request->send(200, "application/json", F("{\"success\":true}"));
#if !defined(ARDUINO_ARCH_ESP32)
}, JSON_BUFFER_SIZE);
#else
}); // WLEDMM JSON_BUFFER_SIZE not needed on ESP32
#endif
server.addHandler(handler);
server.on("/version", HTTP_GET, [](AsyncWebServerRequest *request){