-
Notifications
You must be signed in to change notification settings - Fork 22
Description
When I try to compile the example withWebSocket under Arduino 1.8.19 the compilation fails with the error: 'DynamicJsonDocument' was not declared in this scope
I went back to the version 6 of ArduinoJson, because in version 7 the static and dynamic Json document got merged into a single Json document, but with different syntax and the library increased the needed memory footprint. So the usage of DynamicJsonDocument tells me, that I need to use an version 6 (or maybe even older ?) library version.
I tried it with 6.9.0 (the first non beta version 6 and with 6.21.5 (the last version 6), but the error is the same.
Can someone give me an hint, what to do or which version I should use, to get the example compiled.
The first error occurs in
In file included from C:\arduino-1.8.19\portable\sketchbook\libraries\async-esp-fs-webserver\src/AsyncFsWebServer.h:46,
from C:\arduino-1.8.19\portable\sketchbook\libraries\async-esp-fs-webserver\examples\withWebSocket\withWebSocket.ino:8:
C:\arduino-1.8.19\portable\sketchbook\libraries\async-esp-fs-webserver\src/SetupConfig.hpp:18:9: error: 'DynamicJsonDocument' does not name a type
18 | DynamicJsonDocument* m_doc = nullptr;
Thanks for any usable hint