Your new topic does not fit any of the above??? Check first. Then post here. Thanks.

Moderator: igrr

User avatar
By Rupak
#49131 Sorry folks, If I am repeating the same question.

Hi,

I am trying to make use of light sleep for my ESP-8266-01 with the help of below code:

Serial.println("Wifi_off_timerfunc called to disable wifi");
wifi_station_disconnect();
wifi_set_opmode(NULL_MODE);
wifi_fpm_set_sleep_type(LIGHT_SLEEP_T);
Serial.println("set the sleep as LIGHT SLEEP");
wifi_fpm_open();
os_timer_disarm(&on_timer);
os_timer_setfn(&on_timer, (os_timer_func_t *)fpm_wakup_cb_func1, NULL);

In the normal mode, I measured the current and its showing 70~80mA.
But when I am measuring the current output after " LIGHT SLEEP (5th line from top)", still the measure current is 70~80mA.
can you let me know if I am missing something while invoking the "LIGHT sleep".
Also can you let me know is there any API to modify the Beacon interval & DTIM interval.

thanks,
Rupak