esp32-iot-examples icon indicating copy to clipboard operation
esp32-iot-examples copied to clipboard

Run configuration portal in void loop

Open DeltaVetal26 opened this issue 6 years ago • 0 comments

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?

DeltaVetal26 avatar Feb 17 '19 06:02 DeltaVetal26