esp32-iot-examples
esp32-iot-examples copied to clipboard
Run configuration portal in void loop
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?