khoih-prog / ESP_WiFiManager

This is an ESP32 / ESP8266 WiFi Connection Manager with fallback web configuration portal. Use this library for configuring ESP32 (including ESP32-S2 and ESP32-C3), 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
MIT License
374 stars 97 forks source link

Accessing manager after connection #15

Closed dbhaig closed 4 years ago

dbhaig commented 4 years ago

Hi Khoi I am experimenting with your WiFi Manager library on an ESP8266 and have been able to get it to successfully connect to my WiFi router.

According to the README.md file:

"The configuration portal will now be visible on two networks, these being it's own network and the network to which it has connected. On it's own network it will have two IP addresses, the original 192.168.4.1 and the same IP address it has on the network to which it connected."

Once connected to the router, I am not seeing the configuration port at either the 192.168.4.1 or the DHCP assigned IP address. (I can successfully ping the DHCP assigned IP address but not the 192.198.4.1 address once the ESP8266 is connected.)

What am I missing?

Thanks, in advance.

khoih-prog commented 4 years ago

Hi Don,

Thanks for using the library. I'm sorry for the not-updated and misleading README

I dropped the persistent Config Portal quite a while and use dynamic Config Portal with these features:

  1. open only when necessary to enter Credentials
  2. closed whenever Credentials are valid and Config Portal not needed
  3. More efficient as Config Portal WebServer is not running in normal operation.

because of these following concerns and potential issues

Imagine you have 20 different devices, each running its own AP. There will be a lot of issues such as :

  • channel conflict => big issue for every board, even for your router if channel is duplicated.
  • unintended (re-)connection from other devices
  • the STA+AP mode is not as very reliable as STA only.
  • the Portal Webserver must be still running and not efficient to do so.

Will fix the README soon.

Regards,