Skip to content

Commit

Permalink
Increase memory pool for json.
Browse files Browse the repository at this point in the history
Increase memory pool to parse a bigger json

closes #3
  • Loading branch information
Blueforcer committed Mar 22, 2023
1 parent 667fff2 commit 03cdcc7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/DisplayManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/Globals.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 03cdcc7

Please sign in to comment.