Commit 712046b
committed
feat(net_connect): add net_connect component for unified network connectivity
Port the network connection functionality from esp-idf's
protocol_examples_common component to esp-protocols as a standalone
net_connect component.
Changes:
- Port all network connection code from esp-idf/examples/common_components/protocol_examples_common
- Rename functions from example_* prefix to net_* prefix for consistency
- Add unified API supporting WiFi, Ethernet, Thread, and PPP interfaces
- Add comprehensive Kconfig options for all connection types
- Add net_connect_example demonstrating component usage
- Update component structure with proper CMakeLists.txt and idf_component.yml
- Add README with usage instructions for all supported interfaces
The component provides a unified interface for establishing network
connectivity across multiple transport types, simplifying network setup
in protocol examples and applications.
Supported interfaces:
- WiFi (Station mode with configurable scan methods)
- Ethernet (EMAC and SPI-based)
- Thread (IEEE802.15.4 native or RCP)
- PPP (Point-to-Point Protocol over Serial/USB)
All configuration is done via Kconfig menuconfig, making it easy to
enable/disable specific interfaces and configure connection parameters.1 parent 41f7157 commit 712046b
File tree
24 files changed
+2644
-2
lines changed- components/net_connect
- examples/net_connect_example
- main
- include
24 files changed
+2644
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
61 | | - | |
| 60 | + | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
0 commit comments