khoih-prog / ESPAsync_WiFiManager

This is an ESP32 (including ESP32-S2 and ESP32-C3) / ESP8266 WiFi Connection Manager, using ESPAsyncWebServer, with fallback web configuration portal. Use this library for configuring ESP32, ESP8266 modules' WiFi, etc. Credentials at runtime. You can also specify static DNS servers, personalized HostName, fixed or random AP WiFi channel. With examples supporting ArduinoJson 6.0.0+ as well as 5.13.5- . Using AsyncDNSServer instead of DNSServer now.
MIT License
291 stars 73 forks source link

use AsyncElegantOTA #48

Closed jduisterwinkel closed 3 years ago

jduisterwinkel commented 3 years ago

Hi, I used AsyncElegantOTA (https://github.com/ayushsharma82/AsyncElegantOTA) successfully in other projects, but in combination with ESPAsync_WiFiManager it won't compile. I started from your example Async_ESP_FSWebServer_DRD.ino Normally 3 lines of code are sufficient to setup AsyncElegantOTA in the code:

  1. at the top: #include
  2. just before line server.begin(); in setup(): AsyncElegantOTA.begin(&server);
  3. somewhere in loop(): AsyncElegantOTA.loop(); Now after applying these 3 lines to your example the AsyncElegantOTA type is not recognized:

    sketch_apr07a:229:1: error: 'AsyncElegantOTA' does not name a type AsyncElegantOTA.begin(&server); // Start ElegantOTA (reach out to http://{ip-address}/update) ^ Is this my fault? Or can you explain this behavior?

khoih-prog commented 3 years ago

Sorry I don't like to spend time on the problem not caused from this library's bug.

But I tested and compiled OK with AsyncElegantOTA.

Selection_703

You have to check your installations and only you can know and fix the issue.

Good Luck,

jduisterwinkel commented 3 years ago

It was my fault, unfortunately. I putted the #include not on top of the code. Sorry for the inconveniance with this issue.