ayushsharma82 / ElegantOTA

OTA updates made slick and simple for everyone!
https://elegantota.pro
GNU Affero General Public License v3.0
643 stars 119 forks source link

Error in AsyncDemo #141

Closed Nikitanagar closed 1 year ago

Nikitanagar commented 1 year ago

AsyncTCP.h and ESPAsyncWebServer.h files are not found. Can you let me know the solution?

Luckas007666 commented 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

Luckas007666 commented 1 year ago

when adding "dependencies": { "ottowinter/ESPAsyncWebServer-esphome": "^3.1.0", "ottowinter/ESPAsyncTCP-esphome": "1.2.3" },

to library.json file of ElegantOTA, it compiles fine

Nikitanagar commented 1 year ago

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 "_

Luckas007666 commented 1 year ago

Did you enable Async Mode ? https://docs.elegantota.pro/async-mode/#for-platformio

Nikitanagar commented 1 year ago

Thank you it is working fine.