Tell me what you want, What you really, really want.

Moderator: Mmiscool

User avatar
By Romanus
#34094 Is there any command to put the esp8266 in sleeping mode when all activities have been done?
User avatar
By Mmiscool
#34146 Been thinking about doing some thing like this. As i understand it right now a sleep is possible but there are some pit falls. Will have to investigate and see if its some thing that could be done with the basic interpreter.
User avatar
By Mmiscool
#34154 added sleep command to v1.40 available for download now.
syntax:
Code: Select allsleep {value or var in seconds}

example:
Code: Select allsleep 600


Will put device to sleep for a number of seconds.

Things to note. Sleep mode will cause a full reboot of the device. It will start the device and run the default program from the beginning. It takes 30 seconds before the device starts the default program after reboot.

GPIO16 needs to be tied to RST to wake from Sleep.



Will have to look in to saving the full state of the basic program prior to sleep. That way sleep mode could be like a delay.
User avatar
By Romanus
#34486 I'm using Esp01. I tried the new sleep command but the esp8266 do not wake up after the time exipired. The only way to resume esp8266 working is to physically reset.