Page 1 of 1

ESP-IDF APSTA Mode - test STA credentials

Posted: Mon Mar 04, 2024 5:04 pm
by greycon
Hi, I have a device which issues a configuration page to a browser, allowing users to select an SSID, and enter a Password. I then want to test those credentials, using the device as STA. I have started the device in APSTA mode, and issued a scan for SSIDs. So, the user connects to the device with their browser - the device acts as AP.

Now, how do I take the SSID and Password posted back from the browser and test a connect as STA ? If I change the WiFi STA config, and restart WiFi, I fear that the browser will lose the connection.

Has anyone else done something along these lines?