lora-aprs / LoRa_APRS_iGate

This is a LoRa APRS iGate/Digi based on an ESP32
https://www.lora-aprs.info
MIT License
331 stars 106 forks source link

DynamicJsonDocument deprecated in ArduinoJSON ver. 7 #356

Open Blackeye55 opened 3 months ago

Blackeye55 commented 3 months ago

The code will not compile without errors In PlatformIO because the DynamicJsonDocument has been deprecated in ArduinoJSON version 7. For example: In file included from .pio/libdeps/lilygo-t-display/ArduinoJson/src/ArduinoJson.hpp:53, from .pio/libdeps/lilygo-t-display/ArduinoJson/src/ArduinoJson.h:9, from src/ConfigurationManagement/configuration.h:9, from src/System/TaskManager.h:9, from src/TaskMQTT.h:4, from src/TaskMQTT.cpp:4: .pio/libdeps/lilygo-t-display/ArduinoJson/src/ArduinoJson/compatibility.hpp:125:58: note: declared here class ARDUINOJSON_DEPRECATED("use JsonDocument instead") DynamicJsonDocument or here: cc1plus.exe: out of memory allocating 8392703 bytes src/TaskMQTT.cpp: In member function 'virtual bool MQTTTask::loop(System&)': src/TaskMQTT.cpp:32:29: warning: 'DynamicJsonDocument' is deprecated: use JsonDocument instead [-Wdeprecated-declarations] DynamicJsonDocument data(1024);

Workarounds? Or upgrade code?