feat(examples): Add multiple netif demo: eth+wifi+PPP

This commit is contained in:
David Cermak
2023-04-26 19:10:16 +02:00
parent 4f1769ec71
commit 00d7c40848
12 changed files with 824 additions and 0 deletions

View File

@ -0,0 +1,26 @@
/*
* SPDX-FileCopyrightText: 2023 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Unlicense OR CC0-1.0
*/
/* Common interface info
This example code is in the Public Domain (or CC0 licensed, at your option.)
Unless required by applicable law or agreed to in writing, this
software is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
*/
#pragma once
#include "esp_netif.h"
struct iface_info_t {
esp_netif_t *netif;
esp_netif_dns_info_t dns[2];
void (*teardown)(struct iface_info_t *);
const char *name;
bool connected;
};
typedef struct iface_info_t iface_info_t;