Increase JsonDocument size to handle more light data
This commit is contained in:
parent
915a73861d
commit
75f79fcd90
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ public:
|
||||||
if (input.length() <= 0)
|
if (input.length() <= 0)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
StaticJsonDocument<256> document;
|
StaticJsonDocument<1024> document;
|
||||||
deserializeJson(document, input.c_str());
|
deserializeJson(document, input.c_str());
|
||||||
|
|
||||||
auto lights = document.as<JsonArray>();
|
auto lights = document.as<JsonArray>();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue