turn off power saving mode on wifi
This commit is contained in:
parent
e412178cc0
commit
5236d62f98
1 changed files with 1 additions and 0 deletions
|
|
@ -104,6 +104,7 @@ void wifi_init_sta(void)
|
|||
};
|
||||
ESP_ERROR_CHECK(esp_wifi_set_mode(WIFI_MODE_STA) );
|
||||
ESP_ERROR_CHECK(esp_wifi_set_config(WIFI_IF_STA, &wifi_config) );
|
||||
esp_wifi_set_ps(WIFI_PS_NONE);
|
||||
ESP_ERROR_CHECK(esp_wifi_start() );
|
||||
ESP_ERROR_CHECK(esp_wifi_get_config(WIFI_IF_STA, &wifi_config) );
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue