Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

Moden sleep doubt

Open e8miliano opened this issue 11 years ago • 3 comments

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.

e8miliano avatar Aug 08 '15 21:08 e8miliano

Hi, please read this document. http://bbs.espressif.com/viewtopic.php?f=21&t=645

The esp8266 is using the modem sleep mode automatically.

pgollor avatar Aug 10 '15 11:08 pgollor

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.

e8miliano avatar Aug 11 '15 15:08 e8miliano

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.

pgollor avatar Aug 11 '15 21:08 pgollor