esp-protocols/examples/esp_netif/multiple_netifs
2023-06-28 12:59:44 +02:00
..
main feat(examples): Support simple PPP connect in multinet example 2023-06-28 12:59:44 +02:00
CMakeLists.txt feat(examples): Add multiple netif demo: eth+wifi+PPP 2023-06-22 11:49:59 +02:00
README.md feat(examples): Add multiple netif demo: eth+wifi+PPP 2023-06-22 11:49:59 +02:00
sdkconfig.defaults feat(examples): Add multiple netif demo: eth+wifi+PPP 2023-06-22 11:49:59 +02:00

Supported Targets ESP32

Multiple Interface example

Overview

This example demonstrates working with multiple different interfaces with different priorities. It creates these interfaces and tries to connect:

  • WiFi Station
  • Ethernet using ESP32 internal ethernet driver
  • PPPoS over cellular modem

How to use example

  • Set the priorities and the host name for the example to ICMP ping.
  • The example will initialize all interfaces
  • The example will start looping and checking connectivity to the host name
    • It prints the default interface and ping output
    • It tries to reconfigure DNS server if host name resolution fails
    • It tries to manually change the default interface if connection fails

Hardware Required

To run this example, it's recommended that you have an official ESP32 Ethernet development board - ESP32-Ethernet-Kit. You would also need a modem connected to the board using UART interface.