provisioning: examples updated to use esp_netif instead of tcpip_adapter

This commit is contained in:
David Cermak
2019-08-31 16:24:45 +02:00
parent 204492bd78
commit c00123c77b
9 changed files with 33 additions and 30 deletions

View File

@@ -84,7 +84,7 @@ static void start_softap_provisioning(void)
void app_main(void)
{
/* Initialize networking stack */
tcpip_adapter_init();
esp_netif_init();
/* Create default event loop needed by the
* main app and the provisioning service */
@@ -93,7 +93,9 @@ void app_main(void)
/* Initialize NVS needed by Wi-Fi */
ESP_ERROR_CHECK(nvs_flash_init());
/* Initialize Wi-Fi with default config */
/* Initialize Wi-Fi including netif with default config */
esp_netif_create_default_wifi_sta();
esp_netif_create_default_wifi_ap();
wifi_init_config_t cfg = WIFI_INIT_CONFIG_DEFAULT();
ESP_ERROR_CHECK(esp_wifi_init(&cfg));