examples: modify other examples and tests to use esp_netif instead of tcpip_adapter

This commit is contained in:
David Cermak
2019-09-01 18:25:23 +02:00
parent 0eec84bc4f
commit b834c99148
24 changed files with 85 additions and 54 deletions

View File

@@ -18,7 +18,7 @@
#include "esp_vfs.h"
#include "esp_vfs_dev.h"
#include "driver/uart.h"
#include "tcpip_adapter.h"
#include "esp_netif.h"
#include "lwip/sockets.h"
#include "lwip/netdb.h"
@@ -43,7 +43,7 @@ static void socket_init(void)
int err;
struct sockaddr_in saddr = { 0 };
tcpip_adapter_init();
esp_netif_init();
err = getaddrinfo("localhost", "80", &hints, &res);