cpu/esp8266: avoid WiFi going into sleep mode

This commit is contained in:
Gunar Schorcht 2019-01-30 08:27:21 +01:00
parent 57fdb23464
commit 66c4cf8647

View File

@ -684,6 +684,9 @@ static void _esp_wifi_setup(void)
/* set the the reconnect timer */
xtimer_set(&_esp_wifi_reconnect_timer, ESP_WIFI_RECONNECT_TIME);
/* avoid the WiFi modem going into sleep mode */
wifi_set_sleep_type(NONE_SLEEP_T);
/* connect */
wifi_station_connect();
_esp_wifi_dev.state = ESP_WIFI_CONNECTING;