fix json reserved space was to small if 4 inverters were configured

This commit is contained in:
lumapu 2022-10-16 21:57:55 +02:00
parent 46c3d85936
commit af87365462

View file

@ -36,7 +36,7 @@ void webApi::loop(void) {
//-----------------------------------------------------------------------------
void webApi::onApi(AsyncWebServerRequest *request) {
AsyncJsonResponse* response = new AsyncJsonResponse(false, 4096);
AsyncJsonResponse* response = new AsyncJsonResponse(false, 8192);
JsonObject root = response->getRoot();
Inverter<> *iv = mApp->mSys->getInverterByPos(0, false);