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

Moderator: igrr

User avatar
By DinoN
#41656 HI,

I am using WiFiManager class to handle ESP8266 wifi initialization and configuration.
After initialization I am also starting server so that user can do additional configuration of the device.

I would like to put device to sleep 10 minutes after a cold start (during this time user should be able to log to web server).
How can I do that.
- first i do not see the option to stop the server (there is no end or stop command) from listening and handling user request ?
- after that I would like to use wifi_set_sleep_type(LIGHT_SLEEP_T). Currently it is executing but board is not going to sleep (is this because server is running and i can see 78-80 mAmps drawn), or because wifimanager.

Also do I need to hardwire the ‘post-sleep-reset-pin’ on the MCU to the Reset terminal. I know this is needed for ESP.deepSleep.

Any help will be appreciated.
Thanx,
DiNo