diff --git a/.gitignore b/.gitignore index 793095b..601a4c0 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ esp32.vsd esp32s3.svd debug.cfg +SomfyController.ino.XIAO_ESP32S3.bin diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index f7a19f5..581c880 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ diff --git a/SomfyController.ino.esp32s3.bin b/SomfyController.ino.esp32s3.bin index 40d457d..8e6e7b3 100644 Binary files a/SomfyController.ino.esp32s3.bin and b/SomfyController.ino.esp32s3.bin differ diff --git a/Web.cpp b/Web.cpp index 0a20249..1000cfc 100644 --- a/Web.cpp +++ b/Web.cpp @@ -22,7 +22,7 @@ extern MQTTClass mqtt; extern GitUpdater git; extern Network net; -#define WEB_MAX_RESPONSE 16384 +#define WEB_MAX_RESPONSE 32768 static char g_content[WEB_MAX_RESPONSE]; @@ -231,7 +231,7 @@ void Web::handleController(WebServer &server) { HTTPMethod method = server.method(); settings.printAvailHeap(); if (method == HTTP_POST || method == HTTP_GET) { - DynamicJsonDocument doc(16384); + DynamicJsonDocument doc(WEB_MAX_RESPONSE); somfy.toJSON(doc); serializeJson(doc, g_content); server.send(200, _encoding_json, g_content); @@ -713,7 +713,7 @@ void Web::handleDiscovery(WebServer &server) { HTTPMethod method = apiServer.method(); if (method == HTTP_POST || method == HTTP_GET) { Serial.println("Discovery Requested"); - DynamicJsonDocument doc(16384); + DynamicJsonDocument doc(WEB_MAX_RESPONSE); JsonObject obj = doc.to(); obj["serverId"] = settings.serverId; obj["version"] = settings.fwVersion.name;