diff --git a/ConfigFile.h b/ConfigFile.h index 12ec5ae..e95668f 100644 --- a/ConfigFile.h +++ b/ConfigFile.h @@ -83,7 +83,7 @@ class ShadeConfigFile : public ConfigFile { static bool restore(SomfyShadeController *somfy, const char *filename, restore_options_t &opts); bool begin(const char *filename, bool readOnly = false); bool begin(bool readOnly = false); - bool save(SomfyShadeController *sofmy); + bool save(SomfyShadeController *somfy); bool backup(SomfyShadeController *somfy); bool loadFile(SomfyShadeController *somfy, const char *filename = "/shades.cfg"); bool restoreFile(SomfyShadeController *somfy, const char *filename, restore_options_t &opts); diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index 4e8e755..1ebbc0d 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 153e8cd..f3a749e 100644 Binary files a/SomfyController.ino.esp32s3.bin and b/SomfyController.ino.esp32s3.bin differ diff --git a/Web.cpp b/Web.cpp index 522cd0d..579bf8b 100644 --- a/Web.cpp +++ b/Web.cpp @@ -1260,7 +1260,7 @@ void Web::begin() { SomfyShade* shade = nullptr; if (method == HTTP_POST || method == HTTP_PUT) { Serial.println("Adding a shade"); - DynamicJsonDocument doc(512); + DynamicJsonDocument doc(1024); DeserializationError err = deserializeJson(doc, server.arg("plain")); if (err) { switch (err.code()) { @@ -1285,7 +1285,7 @@ void Web::begin() { Serial.println("Adding shade"); shade = somfy.addShade(obj); if (shade) { - DynamicJsonDocument sdoc(512); + DynamicJsonDocument sdoc(1024); JsonObject sobj = sdoc.to(); shade->toJSON(sobj); serializeJson(sdoc, g_content); @@ -1299,7 +1299,7 @@ void Web::begin() { } if (shade) { //Serial.println("Serializing shade"); - DynamicJsonDocument doc(256); + DynamicJsonDocument doc(1024); JsonObject obj = doc.to(); shade->toJSON(obj); serializeJson(doc, g_content);