Q on MODEM_SLEEP
Posted: Thu Dec 29, 2016 6:49 pm
Hi,
following the samples provided here https://www.espressif.com/sites/default ... ide_cn.pdf for forcing the ESP into MODEM_SLEEP I'm wondering, why I have to
wifi_station_disconnect();
wifi_set_opmode(NULL_MODE);
and
wifi_set_opmode(STATION_MODE); // set station mode
wifi_station_connect();
on wake up. Isn't the MODEM_SLEEP mode supposed to maintain the connection to the AP while sleeping? Why do I have to explicitly disconnect/connect and to go over NULL_MODE?
Regards
following the samples provided here https://www.espressif.com/sites/default ... ide_cn.pdf for forcing the ESP into MODEM_SLEEP I'm wondering, why I have to
wifi_station_disconnect();
wifi_set_opmode(NULL_MODE);
and
wifi_set_opmode(STATION_MODE); // set station mode
wifi_station_connect();
on wake up. Isn't the MODEM_SLEEP mode supposed to maintain the connection to the AP while sleeping? Why do I have to explicitly disconnect/connect and to go over NULL_MODE?
Regards