Skip to content

ESP32 light sleep mode and WiFi on/off #306

@king2

Description

@king2

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions