cpu/esp8266: avoid WiFi going into sleep mode
This commit is contained in:
parent
57fdb23464
commit
66c4cf8647
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user