Moden sleep doubt
Hi, I am trying to put the esp to sleep unless it recieves something from a server. Then it wakes up and processes the message. I read about "modem_sleep" which seems to be the solution of my problem. How can i make this call? Is it ok like this ?
ESP.deepSleep(WAKE_RF_DISABLED)
Or should I specify another mode? I did not specify the time parameter, because the data that comes from the server is asynchronous. Thanks and sorry for my english.
Hi, please read this document. http://bbs.espressif.com/viewtopic.php?f=21&t=645
The esp8266 is using the modem sleep mode automatically.
Hi, thanks for the help. I read that document and I did not realize. So if my esp needs to be connected to a server full time, it will "sleep" until it recieves info?? This would be great.
On Mon, Aug 10, 2015 at 8:46 AM, pgollor [email protected] wrote:
Hi, please read this document. http://bbs.espressif.com/viewtopic.php?f=21&t=645
The esp8266 is using the modem sleep mode automatically.
— Reply to this email directly or view it on GitHub https://github.com/esp8266/Arduino/issues/674#issuecomment-129419338.
Hi, i am not sure, but i think so. I recognise this could only be working in station mode and not in soft ap mode.