Why do I find this confusing... #31
-
Greetings Mathieu - I'm working with your library and I'm trying to understand the flow and why this this is written as such: src/MycilaESPConnect.cpp Line 385:
Maybe I'm missing the bigger picture... -Terry |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
hello! when in captive portal mode, when the user select its choice (either ap mode or wifi), we activate AP mode (or try connect to wifi with timeout). Once done, captive portal is disabled. usually, this is not something observed because most of the case, after a use choice is done, ESPConnect will reboot the ESP (there is a reboot option set to true by default). This is often easier to just reboot and restart with the proper network settings. But if a reboot is not possible, option can be set to false, ESPConnect will disable captive portal and connect to network or AP mode. But you need to be careful with that, especially when using handlers, because network interface changes and ESPAsyncWS handlers should contain some filter rules depending on the state of the captive portal. |
Beta Was this translation helpful? Give feedback.
-
Ok - thank you for the clarification. With your explanation and another read through the code, the AP vs STA modes make more sense... I appreciate it! |
Beta Was this translation helpful? Give feedback.
hello!
when in captive portal mode, when the user select its choice (either ap mode or wifi), we activate AP mode (or try connect to wifi with timeout). Once done, captive portal is disabled.
usually, this is not something observed because most of the case, after a use choice is done, ESPConnect will reboot the ESP (there is a reboot option set to true by default). This is often easier to just reboot and restart with the proper network settings.
But if a reboot is not possible, option can be set to false, ESPConnect will disable captive portal and connect to network or AP mode. But you need to be careful with that, especially when using handlers, because network interface changes and ESPA…