From 937d628d0a6eaad38ccddd6162dc9e6e9123261d Mon Sep 17 00:00:00 2001 From: Ewowi Date: Tue, 20 Sep 2022 11:11:59 +0200 Subject: [PATCH] Move from DynamicJsonDocument to PSRAMDynamicJsonDocument --- usermods/usermod_v2_weather/usermod_v2_weather.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usermods/usermod_v2_weather/usermod_v2_weather.h b/usermods/usermod_v2_weather/usermod_v2_weather.h index 850ea850..67bf36d1 100644 --- a/usermods/usermod_v2_weather/usermod_v2_weather.h +++ b/usermods/usermod_v2_weather/usermod_v2_weather.h @@ -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);