srwi / FastLEDHub

Control multiple FastLED lightstrip animations on the ESP8266 and ESP32 without reuploading.
GNU Lesser General Public License v2.1
58 stars 3 forks source link

StaticJsonDocument is deprecated #23

Closed thijstriemstra closed 7 months ago

thijstriemstra commented 7 months ago

Using bblanchon/ArduinoJson@^7.0.4:

.pio/libdeps/myproject/FastLEDHub/src/Fade.cpp: In function 'void Fade::{anonymous}::getSunsetTime()':
.pio/libdeps/myproject/FastLEDHub/src/Fade.cpp:65:7: warning: 'template<unsigned int N> class ArduinoJson::V704PB2::StaticJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations]
       StaticJsonDocument<1024> doc;
       ^~~~~~~~~~~~~~~~~~

and:

.pio/libdeps/myproject/FastLEDHub/src/Config.cpp: In member function 'String ConfigClass::asString(bool)':
.pio/libdeps/myproject/FastLEDHub/src/Config.cpp:175:26: warning: 'DynamicJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations]
   DynamicJsonDocument doc(3072);
srwi commented 7 months ago

I bumped the ArduinoJson dependency to >=7.0.0.