Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AP Off #2608

Closed
castro2487 opened this issue Oct 14, 2016 · 3 comments
Closed

AP Off #2608

castro2487 opened this issue Oct 14, 2016 · 3 comments

Comments

@castro2487
Copy link

i was looking for but i haven't find it yet, it's possible to turn off the Wifi network that i create with the ESP8266? i try WiFi.mode(WIFI_OFF), and doesn't work.

because i use the AP for receive some data the first time that i turn of the hardware and when i finish the configuration process i want to shut down the AP and receive the colllect information VIA internet with a IP address that i have and then to the app that im doing.

@MarcusWichelmann
Copy link

MarcusWichelmann commented Oct 17, 2016

Might it work for your use case to store the settings in the EEPROM when you're finished with the configuration-process via the AP and then reboot the device? After the reboot the code could detect, that the configuration is already done, read it from the EEPROM and do it's stuff without starting the AP again.

@copercini
Copy link

Using git version, mine ESP8266 create a Wifi network too, without I want it.

@devyte
Copy link
Collaborator

devyte commented Oct 11, 2017

@castro2487 If you want to turn off the Wifi, see #644 , you need something like:
WiFi.disconnect();
WiFi.mode(WIFI_OFF);
If you want to switch from StationAP to Station, then you need to play further with WiFi.mode().
If you need further help, please refer to a community forum, and/or look at the WiFi source code.
Off-topic, closing per #3655 .

@devyte devyte closed this as completed Oct 11, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants