srwi / FastLEDHub

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

StaticJsonDocument is deprecated #23

Closed thijstriemstra closed 5 months ago

thijstriemstra commented 5 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 5 months ago

I bumped the ArduinoJson dependency to >=7.0.0.