NetMgmt Example#
Introduction#
This example is a comprehensive test of the network management HAL, covering WLAN STA, WLAN AP, LAN, default NIC, and IP configuration interfaces.
Source location: src/rtsmart/examples/peripheral/netmgmt/test_netmgmt.c
Example Behavior#
UTILS: default NIC, device probing, ifconfig, device list
WLAN STA: auto-reconnect, connect/disconnect, scan, RSSI, MAC, AP info
WLAN AP: start/stop, active state, country code, connected STA management
LAN: link status, MAC, static IP, DHCP switching
The test SSID/password used in the example are macros inside the source code (TEST_SSID/TEST_PASSWORD); for actual use, please modify the source code according to your local network.
Key Interfaces#
netmgmt_utils_*netmgmt_wlan_sta_*netmgmt_wlan_ap_*netmgmt_lan_*
Build and Run#
cd src/rtsmart/examples/peripheral/netmgmt
make
./test_netmgmt
This example takes no command-line arguments.
Tip
For interface descriptions and parameter definitions, please refer to the NetMgmt API Documentation.
