Move from DynamicJsonDocument to PSRAMDynamicJsonDocument

This commit is contained in:
Ewowi
2022-09-20 11:11:59 +02:00
parent ff26b8fe0a
commit 937d628d0a

View File

@@ -173,7 +173,7 @@ class WeatherUsermod : public Usermod {
// Allocate the JSON document
// Use arduinojson.org/v6/assistant to compute the capacity.
// 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
DeserializationError error = deserializeJson(weatherDoc, client);