mirror of
https://github.com/espressif/esp-idf.git
synced 2025-09-30 19:19:21 +00:00
examples: modify other examples and tests to use esp_netif instead of tcpip_adapter
This commit is contained in:
@@ -55,8 +55,9 @@ static void event_handler(void* arg, esp_event_base_t event_base,
|
||||
/*init wifi as sta and set power save mode*/
|
||||
static void wifi_power_save(void)
|
||||
{
|
||||
tcpip_adapter_init();
|
||||
esp_netif_init();
|
||||
ESP_ERROR_CHECK(esp_event_loop_create_default());
|
||||
assert(esp_netif_create_default_wifi_sta());
|
||||
|
||||
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
|
||||
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
|
||||
|
Reference in New Issue
Block a user