Increase memory pool for json.

Increase memory pool to parse a bigger json

closes #3
This commit is contained in:
Stephan Mühl
2023-03-22 19:40:26 +01:00
parent 667fff226e
commit 03cdcc702d
2 changed files with 2 additions and 2 deletions

View File

@@ -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<int>() * 1000 : TIME_PER_FRAME;

View File

@@ -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;