Move from DynamicJsonDocument to PSRAMDynamicJsonDocument
This commit is contained in:
@@ -173,7 +173,7 @@ class WeatherUsermod : public Usermod {
|
|||||||
// Allocate the JSON document
|
// Allocate the JSON document
|
||||||
// Use arduinojson.org/v6/assistant to compute the capacity.
|
// Use arduinojson.org/v6/assistant to compute the capacity.
|
||||||
// const size_t capacity = JSON_OBJECT_SIZE(3) + JSON_ARRAY_SIZE(2) + 60;
|
// const size_t capacity = JSON_OBJECT_SIZE(3) + JSON_ARRAY_SIZE(2) + 60;
|
||||||
DynamicJsonDocument weatherDoc(24000); //in practive about 20.000
|
PSRAMDynamicJsonDocument weatherDoc(24000); //in practive about 20.000
|
||||||
|
|
||||||
// Parse JSON object
|
// Parse JSON object
|
||||||
DeserializationError error = deserializeJson(weatherDoc, client);
|
DeserializationError error = deserializeJson(weatherDoc, client);
|
||||||
|
|||||||
Reference in New Issue
Block a user