Increase memory pool for json.
Increase memory pool to parse a bigger json closes #3
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user