Moderator: igrr
can have values 0,1,2,4, those and the result on power consumption on wake up are explained here
[url http://bbs.espressif.com/viewtopic.php?f=7&t=171&p=617]http://bbs.espressif.com/viewtopic.php?f=7&t=171&p=617
[/url]
I got now good results with value 2.
But sometimes my program wake up and fails to establish the wifi connection again, for this I count the loops of my program after wake up. If those exceed a certain value I do a reset with abort(); I always get a connection after this second reset.
After wake up the program starts like after an hardware reset. So be sure you don't need any variable values from before the initiation of deep sleep.