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

ESP32 light sleep mode and WiFi on/off #306

Open
king2 opened this issue Jun 10, 2022 · 0 comments
Open

ESP32 light sleep mode and WiFi on/off #306

king2 opened this issue Jun 10, 2022 · 0 comments

Comments

@king2
Copy link

king2 commented Jun 10, 2022

Hi!

I need sometimes to shutdown WiFi, and start it again, in two cases:

  1. going to light sleep to consume less energy
  2. sometimes I need to start MCU without WiFi, run, then (later) start WiFi by external command, and then stop it again (activate interface, configure, shutdown WiFi and then run on battery without WiFi - when WiFi is not needed)

As I understand, framework has begin() functions, so I need to call "esp8266React.begin(); server.begin();", but how to finish WiFi gracefully so it can be started again (without MCU hard reset in between, just sleep and running like it was loooong delay)?

Thank you in advance!

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

1 participant