feat(examples): Add esp_netif examples demonstrating network interface configurations#1013
feat(examples): Add esp_netif examples demonstrating network interface configurations#1013abhik-roy85 wants to merge 1 commit intoespressif:masterfrom
Conversation
bc8bb2d to
4cb7552
Compare
4cb7552 to
d4e6b81
Compare
6186ceb to
b9cacf0
Compare
| @@ -0,0 +1,7 @@ | |||
| dependencies: | |||
| idf: | |||
| version: '>=5.4.3,!=5.5.0,!=5.5.1' | |||
There was a problem hiding this comment.
Should the reason for constraints be clarified?
There was a problem hiding this comment.
I presume this is due to Ethernet Init component. However, is it needed to be explicitly redefined for this example? Wouldn't be better to let it on version resolver based on Ethernet init?
There was a problem hiding this comment.
Modified to
idf: "*"
| @@ -0,0 +1,7 @@ | |||
| dependencies: | |||
| idf: | |||
| version: '>=5.4.3,!=5.5.0,!=5.5.1' | |||
There was a problem hiding this comment.
I presume this is due to Ethernet Init component. However, is it needed to be explicitly redefined for this example? Wouldn't be better to let it on version resolver based on Ethernet init?
|
|
||
| ## Overview | ||
|
|
||
| This example initializes **two network interfaces simultaneously**: an **Ethernet interface** operating as a **Station (STA)** with DHCP client, and a **Wi-Fi interface** operating as an **Access Point (AP)** with a DHCP server. The Ethernet Station connects to an external network via DHCP, while the Wi-Fi AP provides network access to connected devices via DHCP (e.g. in the `192.168.5.x` range). This hybrid configuration enables the ESP to bridge between a wired upstream connection and a local wireless network. |
There was a problem hiding this comment.
Is the only difference to EthAPWifiAP the fact that Ethernet is set as DHCP Client? If so, I would merge the examples where it makes sense together and rename them to something more common and make DHCP Server/Client as configurable option in the menuconfig. Otherwise, it will be nightmare to maintain.
| @@ -0,0 +1,15 @@ | |||
| # This file was generated using idf.py save-defconfig. It can be edited manually. | |||
There was a problem hiding this comment.
Is this file necessary? Seems to me that all items are defaults from Kconfig.project
There was a problem hiding this comment.
Using the skdconfig.defaults as a configuration file for easier parameter modification.
b9cacf0 to
aea02cc
Compare
|
You have used all of your free Bugbot PR reviews. To receive reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial. |
9febe1e to
9c4dde0
Compare
…e configurations This commit adds new examples showcasing different esp_netif network interface configurations and use cases. Added examples: - eth_gateway: Ethernet Access Point example that runs a DHCP server on a single Ethernet interface, allowing connected devices to obtain IP addresses automatically - eth_endpoint_wifi_sta: Dual interface example that simultaneously operates both Ethernet STA and Wi-Fi STA interfaces as DHCP clients - eth_gateway_wifi_sta: Hybrid configuration example that operates Ethernet as an Access Point with DHCP server while simultaneously running Wi-Fi as a Station connecting to an external access point, enabling network bridging between wired and wireless networks - eth_endpoint_wifi_ap: Hybrid configuration example that operates Ethernet as a Station with DHCP client while simultaneously running Wi-Fi as an Access Point with DHCP server, enabling network bridging between wired upstream connection and local wireless network - eth_gateway_wifi_ap: Dual AP configuration example that simultaneously operates both Ethernet and Wi-Fi interfaces as Access Points with DHCP servers, enabling the ESP to act as a multi-interface router providing both wired (192.168.5.x) and wireless (192.168.4.x) network access simultaneously. Includes configurable DHCP pools, DNS support, NAPT routing, and client management for both interfaces."
9c4dde0 to
7848a4a
Compare
Description
This commit adds new examples showcasing different esp_netif network interface configurations and use cases.
Added examples:
Related
Testing
Checklist
Before submitting a Pull Request, please ensure the following:
Note
Low Risk
New code is isolated to examples and a
.gitignoretweak, with no changes to production components or security-sensitive logic.Overview
Adds two new
esp_netifexample projects underexamples/esp_netif:EthApconfigures a single Ethernet interface with a static IP and runs an on-device DHCP server (including configurable lease time, address pool, and optional DNS offers), andEthStaWifiStabrings up Ethernet STA and Wi‑Fi STA concurrently as DHCP clients while logging IP/DNS info and waiting for Wi‑Fi to obtain an address.Also updates
.gitignoreto ignore clangd cache/index artifacts (.cache/,*.idx).Written by Cursor Bugbot for commit bc8bb2d. This will update automatically on new commits. Configure here.