ESP8266 Developer Zone The Official ESP8266 Forum 2016-04-15T02:19:42+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2033 2016-04-15T02:19:42+08:00 2016-04-15T02:19:42+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2033&p=6467#p6467 <![CDATA[sample code for delay in WiFi force sleep begin function]]>
Can someone help me with the sample code for "delay" in "WiFi force sleep begin" function.
I tried the below code and its not accounting the delay.

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);

Thanks,

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


]]>