As the title says... Chat on...

User avatar
By tsmith3480
#38014 I'm using the ESP8266 as both an access point and client. What I am looking to do is have it serve up a small web page where the user can enter (preferably select) an available SSID and enter the password. I've gotten to the point where I can store the manually entered SSID and password from the http POST and pass those to the wifi.sta.config call and connect. Ideally, I'd like the ESP8266 to scan for available networks and populate an html <select> box. The wifi.sta.getap callback function prints them out nicely, however, I cannot store the output since the function returns a nil value. Is there a way around this that I'm not aware of or is this a request for an API enhancement?

Thanks!
Tony