You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to use auto connect and manually start the ConfigPortal if manual configuration (MQTT etc.) is required. BUT there is "Do not use BOTH" in "On Demand Configuration Portal".
How to allow the user to automatically connect to a known WiFi (after start the device, if setting not required), but at the same time manually launch the Configuration portal with a button, for example?
If I use "autoConnect" in setup ESP32 connects to Wifi
If at the same time I use somewhere in the code (button event) "startConfigPortal", wifi is created, but it is not possible to connect to it (even the address 192.168.4.1 does not work).
If I use "startConfigPortal" instead of "autoConnect" in setup, ESP does not connect to wifi.
If I use only "startConfigPortal" it is possible to connect to ConfigPortal, but after exit it's not connected to wifi
void loop() { // is configuration portal requested? if ( digitalRead(TRIGGER_PIN) == LOW ) { WiFiManager wifiManager; wifiManager.startConfigPortal("OnDemandAP"); Serial.println("connected...yeey :)"); //**<<< NO, IT DOESN'T** } }
The text was updated successfully, but these errors were encountered:
ESP32-C3
tzapu/WiFiManager@^2.0.17
I would like to use auto connect and manually start the ConfigPortal if manual configuration (MQTT etc.) is required. BUT there is "Do not use BOTH" in "On Demand Configuration Portal".
How to allow the user to automatically connect to a known WiFi (after start the device, if setting not required), but at the same time manually launch the Configuration portal with a button, for example?
If I use "autoConnect" in setup ESP32 connects to Wifi
If at the same time I use somewhere in the code (button event) "startConfigPortal", wifi is created, but it is not possible to connect to it (even the address 192.168.4.1 does not work).
If I use "startConfigPortal" instead of "autoConnect" in setup, ESP does not connect to wifi.
If I use only "startConfigPortal" it is possible to connect to ConfigPortal, but after exit it's not connected to wifi
void loop() { // is configuration portal requested? if ( digitalRead(TRIGGER_PIN) == LOW ) { WiFiManager wifiManager; wifiManager.startConfigPortal("OnDemandAP"); Serial.println("connected...yeey :)"); //**<<< NO, IT DOESN'T** } }
The text was updated successfully, but these errors were encountered: