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 me with this.
thanks,