ethernet_examples: use esp_netif instead of tcpip-adapter

This commit is contained in:
David Cermak
2019-09-01 11:15:11 +02:00
parent 19e24fe61e
commit 7f4c8a0b4f
3 changed files with 16 additions and 10 deletions

View File

@@ -192,7 +192,6 @@ static void initialize_wifi(void)
ESP_ERROR_CHECK(esp_event_handler_register(WIFI_EVENT, ESP_EVENT_ANY_ID, wifi_event_handler, NULL));
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_wifi_init(&cfg));
ESP_ERROR_CHECK(tcpip_adapter_clear_default_wifi_handlers());
ESP_ERROR_CHECK(esp_wifi_set_storage(WIFI_STORAGE_RAM));
wifi_config_t wifi_config = {
.ap = {