Skip to content
This repository has been archived by the owner on Nov 16, 2022. It is now read-only.

ArduinoJson - current version causes issue building #4

Open
nostahl opened this issue Mar 12, 2019 · 6 comments
Open

ArduinoJson - current version causes issue building #4

nostahl opened this issue Mar 12, 2019 · 6 comments

Comments

@nostahl
Copy link

nostahl commented Mar 12, 2019

cannot build with current version of ArduinoJson

uninstalled and installed 5.13.3 which let it build but there are still issues.

it does not find wifi despite wificonfig.h present and goes into AP mode.

once I connect to the AP it just serves blank webpages. nothing out of ordinary in serial monitor.

this is all with a fresh install of atom and platformio and added easyOTA

@foxis
Copy link
Owner

foxis commented Mar 12, 2019

What kind of issues with ArduinoJson ?

Did serial monitor output anything indicating at least attempting to connect to WiFi AP ?

As for the blank page - do you see a spinner ?
Have you tried using inspect to check if any HTTP requests are pending ?
Mind you the frontend is very heavy and may require some time do download everything. Also it fires several HTTP requests to fetch all the js and html files and on some ESPs I noticed, that they don't handle multiple requests very well. Sometimes it works, and sometimes it doesn't. Try to refresh the page several times.

@nostahl
Copy link
Author

nostahl commented Mar 12, 2019

apparently atom won't let me copy text out of the build window? hmm

@nostahl
Copy link
Author

nostahl commented Mar 12, 2019

src/Config.cpp:128:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to Ar
duinoJson version 6
DynamicJsonBuffer jsonBuffer;
^
In file included from src/main.cpp:6:0:
.piolibdeps/ESP Async WebServer_ID306/src/AsyncJson.h:70:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to l
earn how to upgrade your program to ArduinoJson version 6
DynamicJsonBuffer _jsonBuffer;
^
In file included from src/main.cpp:6:0:
.piolibdeps/ESP Async WebServer_ID306/src/AsyncJson.h:136:11: error: DynamicJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to
learn how to upgrade your program to ArduinoJson version 6
DynamicJsonBuffer jsonBuffer;
^
src/main.cpp:52:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to Arduin
oJson version 6
StaticJsonBuffer<200> jsonBuffer;
^
src/main.cpp:77:11: error: StaticJsonBuffer is a class from ArduinoJson 5. Please see arduinojson.org/upgrade to learn how to upgrade your program to Arduin
oJson version 6
StaticJsonBuffer<200> jsonBuffer;

@nostahl
Copy link
Author

nostahl commented Mar 12, 2019

it is full of things like that when using the current version of ArduinoJson

@foxis
Copy link
Owner

foxis commented Apr 16, 2019

Hmm, It appears, that ESP Async WebServer library only supports v5 of ArduinoJson. I'll add a library Id to freeze the version for a moment. However I have started working on ArduinoJson upgrade to v6. Compiles fine(except for errors from AsyncWebServer lib) at the moment.

@Teslafly
Copy link

The ESP Async WebServer library appears to support arduinojson6 now. I just tried downloading your branch and it compiles and runs fine now.

I also have this running on the esp32 with a few modifications.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants