【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4
【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4
Postby irvinvp » Fri Jun 24, 2016 2:57 am
I'm trying light sleep, but the second time always shows a "fpm 737" Error, my code:
void sleeping(void);
void wake_up_func(void)
{
wifi_fpm_close();
wifi_set_opmode_current(STATION_MODE);
os_printf("ON\n");
sleeping();
}
void sleeping(void)
{
wifi_station_disconnect();
if(wifi_set_opmode(NULL_MODE)){os_printf("Null OK\n");}
wifi_fpm_set_sleep_type(LIGHT_SLEEP_T);
wifi_fpm_open();
wifi_fpm_set_wakeup_cb(wake_up_func);
os_printf("SUP: %d \n",wifi_fpm_do_sleep(60000000));
}
void user_init(void)
{
uart_init(BIT_RATE_115200,BIT_RATE_115200);
sleeping();
}
void sleeping(void);
void wake_up_func(void)
{
wifi_fpm_close();
wifi_set_opmode_current(STATION_MODE);
os_printf("ON\n");
sleeping();
}
void sleeping(void)
{
wifi_station_disconnect();
if(wifi_set_opmode(NULL_MODE)){os_printf("Null OK\n");}
wifi_fpm_set_sleep_type(LIGHT_SLEEP_T);
wifi_fpm_open();
wifi_fpm_set_wakeup_cb(wake_up_func);
os_printf("SUP: %d \n",wifi_fpm_do_sleep(60000000));
}
void user_init(void)
{
uart_init(BIT_RATE_115200,BIT_RATE_115200);
sleeping();
}
Re: 【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4
Postby dnc40085 » Tue Jul 19, 2016 10:00 am
I'm having the same issue, Is this issue going to be fixed with the next SDK version?
It would be nice to use "wifi_set_opmode_current()" since it doesn't write to flash.
It would be nice to use "wifi_set_opmode_current()" since it doesn't write to flash.
Re: 【SOLVED】LIGHT SLEEP ERROR SDK 1.5.4
Postby dnc40085 » Mon Jul 25, 2016 6:39 pm
I tried light sleep with SDK 1.5.4.1 and SDK 2.0.0 with both "wifi_set_opmode" and "wifi_set_opmode_current" and I get the error "fpm 758".
New bug maybe?
EDIT: Just out of curiosity what are the relevance of the numbers in "fpm 758"?
New bug maybe?
EDIT: Just out of curiosity what are the relevance of the numbers in "fpm 758"?
Who is online
Users browsing this forum: No registered users and 5 guests
Login
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
Latest SDK
Documentation
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!
- All times are UTC+08:00
- Top
- Delete all board cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. We are the manufacturer of ESP8266EX.