Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By MCUdude
#37840 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 :)
Image

I know that I start the access point with this line:
Code: Select allWiFi.softAP("News printer");


and start the web server with this line:
Code: Select allserver.begin();


and the "ordinary" client mode with this:
Code: Select allWiFi.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?
User avatar
By mrburnette
#38461
MCUdude wrote:<...>
..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?


Second part first:
http://esp8266.github.io/Arduino/versions/2.0.0/doc/libraries.html#wifi-esp8266wifi-library

For WiFi lib, you are referred here:
https://www.arduino.cc/en/Reference/WiFi
Which should lead you to here:
https://www.arduino.cc/en/Reference/WiFiDisconnect

Ray