foxis / ESPReflow

ESP8266 reflow controller
GNU General Public License v3.0
33 stars 25 forks source link

ArduinoJson - current version causes issue building #4

Open nostahl opened 5 years ago

nostahl commented 5 years ago

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 commented 5 years ago

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 commented 5 years ago

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

nostahl commented 5 years ago

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 commented 5 years ago

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

foxis commented 5 years ago

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 commented 3 years ago

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.