mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-14 06:04:19 +00:00
examples: modify other examples and tests to use esp_netif instead of tcpip_adapter
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user