Hieromon / AutoConnect

An Arduino library for ESP8266/ESP32 WLAN configuration at runtime with the Web interface
https://hieromon.github.io/AutoConnect/
MIT License
902 stars 188 forks source link

AutoConnect to offer captive portal for 5min even if ESP32 is WiFi-Connected #602

Closed MudassirTufail closed 1 year ago

MudassirTufail commented 1 year ago

Hello

After reading (and attempting) https://hieromon.github.io/AutoConnect/adcpcontrol.html for days, I am still at loss to achieve the following: 1) AutoConnect to keep running captive portal if ESP32 is not WiFi-connected (this piece is good, and is a default behavior) And 2) AutoConnect to keep running captive portal for first 5 min after ESP32 starts and WiFi-connected. That means ESP32 stays on SoftAP mode and user can still access the captive portal at 192.168.4.1 while ESP32 is already connected to a WiFi. I am looking to implement this behavior for first 5 min after ESP32 starts. This provides a time window (5min) if users wants to connect ESP32 to a different WiFi.

I do see options such as retain, timeout etc. but unfortunately I am not smart enough to use them correctly in my sketch. If someone can help me out with some sketch examples to achieve the above (especially "2"). Thank You

MudassirTufail commented 1 year ago

Initiated it in "Discussion" form - closing it here