Hi Experts,
I have wi-fi running in AT+STA mode using Arduino 1.6.8. ESP-8266 firmware is based on SDK1.5
I want to put the wifi AP into modem sleep mode for a specific time x.
Serial.println("diconnecting client and wifi");
wifi_set_opmode(NULL_MODE);
wifi_fpm_set_sleep_type(MODEM_SLEEP_T);
wifi_fpm_open();
WiFi.disconnect();
WiFi.mode(WIFI_OFF);
Serial.println("WiFi Off, going for forde sleep");
WiFi.forceSleepBegin();
delay(10000);
Expectation is that after WiFi force sleep starts, AP should wait for WiFi to start till delay timer.
But here delay function is not being called.
Can anyone help with this
thanks,
Delay function not called after "WiFi force sleep begin" function
Re: Delay function not called after "WiFi force sleep begin" function
Postby ESP_Faye » Mon May 09, 2016 7:34 pm
Hi,
How about calling delay before the fpm(force sleep) APIs?
Or use os_timer_arm to set a timer to call fpm APIs.
Thanks for your interest in ESP8266 !
How about calling delay before the fpm(force sleep) APIs?
Or use os_timer_arm to set a timer to call fpm APIs.
Thanks for your interest in ESP8266 !
Who is online
Users browsing this forum: No registered users and 3 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.