-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Soft_AP #86
Comments
I would like to make your requirements more clearly. |
Like I mentioned, I want two possibilities:
|
It is still vague, but I think it is possible.
What kind of behavior do you want? Is it acting as the simple web server featuring custom web pages, not as a captive portal? (Do you want to suppress pop-up the AutoConnect menu when you connect to the ESP module's AP?) AutoConnect portal;
void setup() {
portal.onDetect([](IPAddress ip) {
return false;
});
config.immediateStart = true;
portal.config(config);
WiFi.disconnect(true); // <-- if necessary
delay(1000); // Wait for disconnect
portal.begin();
} However, I cannot understand how it consistent with the quotation below you said:
Because the ESP module is already in SoftAP mode to prompt the custom Web page for the dialog as you said:
|
Thanks for your quick respond. The sketch is controlling a heater with build in led. All is controlled via a webserver (webpage) with websocket connection for quick response. I want to be able to have the ESP32 to work on its own (AP Mode) or to join a network. Anyhow I will try what you suggested. |
I have a similar requirement. When the captive portal is active I would like my custom webpages to be active and also allow the loop method to preform an action. |
@computergeek1507, thank you for your suggestion. |
When captive portal is activated(i.e no wifi credential is saved) no other calling functions in loop() does not work. Why?? |
AutoConnect does not return control to the sketch until WiFi connected or times out. See the Inside AutoConnect::begin chapter in the documentation. |
I have a sketch were the customer can decide if he joins network or not. I did implement this question with the AutoElements. If he answers yes then it will use the new AP credentials. If the answer is no it should start in SoftAP Mode. Is this possible?
Alex
The text was updated successfully, but these errors were encountered: