Skip to content
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

Run configuration portal in void loop #16

Open
DeltaVetal26 opened this issue Feb 17, 2019 · 0 comments
Open

Run configuration portal in void loop #16

DeltaVetal26 opened this issue Feb 17, 2019 · 0 comments

Comments

@DeltaVetal26
Copy link

Hi,

    WiFi.mode(WIFI_MODE_APSTA); // Set AP Mode
    WiFi.softAP(AP_SSID, AP_PASS); // Set SSID and PASS AP Mode
    server.begin();

In the WIFI Portal example, these settings are in the void setup(), as far as I understand, this means that they will take up memory, even if I don’t run the configuration portal.

I want to launch the portal only for one event (button click).
The question is, is it possible to place these functions in a void loop() and run only by the moment the button is pressed?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant