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

question ModelessConnect & WiFiServer #7

Closed freemanzwin closed 4 years ago

freemanzwin commented 4 years ago

hi. (sorry. poor english.)

I am testing the ModelessConnect example.

In addition, an FTP server (using WiFiServer) is used together.

ModelessConnect cannot connect to the router after rebooting after configuring the router in the portal.

Can't I use it with WifiServer(FTP server)?

Please help.


void loop() { loopModelessConnect(); loopFTPServer(); }

khoih-prog commented 4 years ago

Hi @freemanzwin

With your minimal code, I have no idea what and where it's not working and what you're actually doing.

I suggest you start by running all the examples, then pick the example closely-fit to your purpose, then modify according to your use case, step by step, to see where it's broken.

Selecting the Modeless example is possibly not the best, as it's trying to run more demanding STA+AP mode, unless you have the good reason to use.

Also remember the library is using ESPAsyncWebServer, so the FTP server have to be also Async type to avoid possible conflict. The loopFTPServer() in loop() shows that you're not using the Async version.

I don't see any issue of running the correct FTP server if you write the code correctly.

Sorry I can't help any further.