-->
Page 1 of 1

What are ways to get ESP8266 to connect to AP without UI?

PostPosted: Fri May 22, 2015 8:54 pm
by helpme
If I want ESP8266 to connect to an Access Point without using buttons and display screen, how can this be done? Smartphones and tablets have touchscreen. The simple ESP8266 does not. What are user-friendly ways, if any, to get ESP8266 to connect to AP without the luxury of having a User Interface of buttons and display screen?

Re: What are ways to get ESP8266 to connect to AP without UI

PostPosted: Sat May 23, 2015 4:00 am
by lethe
One way would be to start the esp in AP mode, if it is unconfigured and start a act as webserver which presents a config page. This way any wifi device with a webbrowser (phone, tablet, notebook, etc.) can be used to configure the esp.

Another way is the "smartconfig" API provided by the SDK. It requires an app on your phone/tablet which send specially crafted wifi packets, that contain your wifi credentials. This method could configure multiple devices at once, but requires an app to be installed by the user and can only configure wifi (while the webpage setup could configure any settings you like).

The esphttpd project includes a demo with setup page and I belive an example for smartconfig is included in the SDK.

Re: What are ways to get ESP8266 to connect to AP without UI

PostPosted: Sat May 23, 2015 4:14 am
by helpme
Thank you very much for the reply. The AP option looks great. But the problem is after starting ESP in AP mode, can ESP revert back to work as WiFi client to connect to other AP? If yes, can these operations be done using AT command? Is it necessary to write custom firmware on ESP8266 to perform these operations?