A couple of ESP related programming questions
Posted: Sun Jan 03, 2016 6:12 pm
Hi!
I'm currently building an ESP8266 based RSS news printing device, using an old OKI Microline 182.
The idea is this: When the device is powered on, it creates an access point where the user have to enter an SSID and a password for the wireless network. When done the ESP stores the SSID and password, stops the web server, stops the access point and connects to the network. If the SSID or password are wrong, it will start all over again. Here is a flowchart
I know that I start the access point with this line:
and start the web server with this line:
and the "ordinary" client mode with this:
..but how do I stop the web server, the access point and the client mode?
I've been looking for a good ESP Arduino reference site, but I haven't found any. Does there actually exist one?
I'm currently building an ESP8266 based RSS news printing device, using an old OKI Microline 182.
The idea is this: When the device is powered on, it creates an access point where the user have to enter an SSID and a password for the wireless network. When done the ESP stores the SSID and password, stops the web server, stops the access point and connects to the network. If the SSID or password are wrong, it will start all over again. Here is a flowchart
I know that I start the access point with this line:
Code: Select all
WiFi.softAP("News printer");
and start the web server with this line:
Code: Select all
server.begin();
and the "ordinary" client mode with this:
Code: Select all
WiFi.begin(wifiSSID, wifiPassword);
..but how do I stop the web server, the access point and the client mode?
I've been looking for a good ESP Arduino reference site, but I haven't found any. Does there actually exist one?