feat(examples): Add esp_netif examples demonstrating network interface configurations#1013
Open
abhik-roy85 wants to merge 1 commit into
Open
feat(examples): Add esp_netif examples demonstrating network interface configurations#1013abhik-roy85 wants to merge 1 commit into
abhik-roy85 wants to merge 1 commit into
Conversation
abhik-roy85
marked this pull request as draft
February 17, 2026 12:51
abhik-roy85
force-pushed
the
esp_netif_examples
branch
from
February 17, 2026 12:58
bc8bb2d to
4cb7552
Compare
abhik-roy85
force-pushed
the
esp_netif_examples
branch
from
February 19, 2026 01:59
4cb7552 to
d4e6b81
Compare
abhik-roy85
force-pushed
the
esp_netif_examples
branch
2 times, most recently
from
February 27, 2026 13:10
6186ceb to
b9cacf0
Compare
abhik-roy85
marked this pull request as ready for review
February 27, 2026 13:14
abhik-roy85
requested review from
alisitsyn,
bogdankolendovskyy,
david-cermak,
euripedesrocha,
gabsuren,
glmfe and
kostaond
February 27, 2026 13:14
alisitsyn
reviewed
Mar 19, 2026
alisitsyn
self-requested a review
March 19, 2026 09:28
kostaond
reviewed
Mar 19, 2026
|
|
||
| ## 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. |
Collaborator
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.
abhik-roy85
force-pushed
the
esp_netif_examples
branch
from
March 31, 2026 13:26
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. |
abhik-roy85
force-pushed
the
esp_netif_examples
branch
3 times, most recently
from
April 1, 2026 11:26
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."
abhik-roy85
force-pushed
the
esp_netif_examples
branch
from
April 1, 2026 12:44
9c4dde0 to
7848a4a
Compare
david-cermak
approved these changes
Jul 7, 2026
david-cermak
left a comment
Collaborator
There was a problem hiding this comment.
LGTM!
I think it's in a merge-able state, but I'd only add build only jobs for the apps, so we keep it buildable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.