examples: protocol examples which use common connection component

updated to use esp_netif_init instead of tcpip_adapter in initialization code
This commit is contained in:
David Cermak
2019-08-31 16:19:21 +02:00
committed by Rocha Euripedes
parent 358b4b1919
commit 29a89b1961
6 changed files with 12 additions and 12 deletions

View File

@@ -14,7 +14,7 @@
#include "esp_system.h"
#include "nvs_flash.h"
#include "esp_event.h"
#include "tcpip_adapter.h"
#include "esp_netif.h"
#include "protocol_examples_common.h"
#include "esp_log.h"
@@ -139,7 +139,7 @@ void app_main(void)
esp_log_level_set("OUTBOX", ESP_LOG_VERBOSE);
ESP_ERROR_CHECK(nvs_flash_init());
tcpip_adapter_init();
esp_netif_init();
ESP_ERROR_CHECK(esp_event_loop_create_default());
/* This helper function configures Wi-Fi or Ethernet, as selected in menuconfig.