From 03cdcc702da7afcc8b7b00b4143d609e130b2bc3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20M=C3=BChl?= <31169771+Blueforcer@users.noreply.github.com> Date: Wed, 22 Mar 2023 19:40:26 +0100 Subject: [PATCH] Increase memory pool for json. Increase memory pool to parse a bigger json closes #3 --- src/DisplayManager.cpp | 2 +- src/Globals.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DisplayManager.cpp b/src/DisplayManager.cpp index 13dcc178..ecddd366 100644 --- a/src/DisplayManager.cpp +++ b/src/DisplayManager.cpp @@ -339,7 +339,7 @@ void DisplayManager_::generateCustomPage(uint16_t id, String payload) void DisplayManager_::generateNotification(String payload) { - StaticJsonDocument<128> doc; + StaticJsonDocument<1024> doc; deserializeJson(doc, payload); notify.duration = doc.containsKey("duration") ? doc["duration"].as() * 1000 : TIME_PER_FRAME; diff --git a/src/Globals.cpp b/src/Globals.cpp index ab280449..32d117a4 100644 --- a/src/Globals.cpp +++ b/src/Globals.cpp @@ -30,7 +30,7 @@ IPAddress gateway; IPAddress subnet; IPAddress primaryDNS; IPAddress secondaryDNS; -const char *VERSION = "0.31"; +const char *VERSION = "0.32"; String MQTT_HOST = ""; uint16_t MQTT_PORT = 1883; String MQTT_USER;