alanswx / ESPAsyncWiFiManager

Port WiFiManager to ESP Async Server
MIT License
222 stars 85 forks source link

Destroy/Reset AsyncWebserver & DNS after successful connect? #18

Closed debsahu closed 6 years ago

debsahu commented 6 years ago

Great work @alanswx, saved me tons of time re-coding WiFiManager. In line 484, could you destroy/reset both AsyncWebserver & DNS after successful connect?

dnsServer = DNSServer();
server.reset();

This way the server is usable after AsyncWiFiManger connect, or else both DNS and webserver become unusable. Let me know if you want me to create a PR.

Maybe this will also solve https://github.com/alanswx/ESPAsyncWiFiManager/issues/17

alanswx commented 6 years ago

Good catch - can you create a PR. Thanks!

debsahu commented 6 years ago

Sure thing.