-->
Page 1 of 1

Sleep modes available?

PostPosted: Wed Dec 31, 2014 2:24 am
by clinkme
Hi,
Are there any sleep modes of the chip, when the wi-fi is off, but the GPIO pins are active?
For example, the chip is in that sleep mode and wakes up on pin interrupt
(for example, from button or other external circuit)?

I know about the so called deep sleep mode, but it is not suitable because the chip in deep sleep
cannot handle its GPIOs (except one internal RTC pin).

And, Happy New Year!

Re: Sleep modes available?

PostPosted: Wed Dec 31, 2014 2:38 am
by reaper7
from SDK 0.9.4

part of user_interface.h
Code: Select allenum sleep_type {
   NONE_SLEEP_T   = 0,
   LIGHT_SLEEP_T,
   MODEM_SLEEP_T
};

bool wifi_set_sleep_type(enum sleep_type type);
enum sleep_type wifi_get_sleep_type(void);


http://bbs.espressif.com/viewtopic.php? ... EEP_T#p303

Re: Sleep modes available?

PostPosted: Wed Dec 31, 2014 12:30 pm
by clinkme
Call to the function wifi_set_sleep_type(LIGHT_SLEEP_T)
doesn't get any result.
How this API should be used?