Closed Nikitanagar closed 1 year ago
somehow dependency for platformio is not present ? (also not in library.json ? )
In file included from .pio\libdeps\d1_mini\ElegantOTA\src\ElegantOTA.cpp:1: .pio\libdeps\d1_mini\ElegantOTA\src\ElegantOTA.h:51:14: fatal error: ESPAsyncTCP.h: No such file or directory 51 | #include "ESPAsyncTCP.h" | ^~~~~~~~~~~~~~~ compilation terminated.
even if I have this in my projects platformio.ini
build_flags = '-D ELEGANTOTA_USE_ASYNC_WEBSERVER=1' lib_ldf_mode = deep+ lib_deps = ottowinter/ESPAsyncWebServer-esphome@^3.1.0 ottowinter/ESPAsyncTCP-esphome@^1.2.3
dependency graph:
Dependency Graph |-- ESPAsyncWebServer-esphome @ 3.1.0 |-- ESPAsyncTCP-esphome @ 1.2.3 |-- Debug_lib @ 0.1.5+sha.ceb0914 |-- ElegantOTA @ 3.1.0 |-- ESP8266WiFi @ 1.0
when adding
"dependencies": { "ottowinter/ESPAsyncWebServer-esphome": "^3.1.0", "ottowinter/ESPAsyncTCP-esphome": "1.2.3" },
to library.json file of ElegantOTA, it compiles fine
Thank you for the response Luckas, Yeah, This error has been solved after adding the above lines in library.json. But another error is found _argument of type "Asyncwebserver " is incompatible with parameter of type "Webserver "_
Did you enable Async Mode ? https://docs.elegantota.pro/async-mode/#for-platformio
Thank you it is working fine.
AsyncTCP.h and ESPAsyncWebServer.h files are not found. Can you let me know the solution?