ESP8266 Developer Zone The Official ESP8266 Forum 2016-05-09T19:34:19+08:00 https://bbs.espressif.com:443/feed.php?f=65&t=2034 2016-05-09T19:34:19+08:00 2016-05-09T19:34:19+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2034&p=6773#p6773 <![CDATA[Re: Delay function not called after "WiFi force sleep begin" function]]>
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 !

Statistics: Posted by ESP_Faye — Mon May 09, 2016 7:34 pm


]]>
2016-04-15T02:24:40+08:00 2016-04-15T02:24:40+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2034&p=6468#p6468 <![CDATA[Delay function not called after "WiFi force sleep begin" function]]>
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,

Statistics: Posted by rupak426 — Fri Apr 15, 2016 2:24 am


]]>