|
NetBurner 3.5.8
PDF Version |
Example Path: examples/Wifi/ESP32/WifiBasic
This is the simplest ESP32-C5 WiFi integration for NetBurner. It brings WiFi up on a NetBurner module that uses an attached ESP32-C5 radio as a network co-processor, then lets the ESP32-C5 library serve its built-in provisioning web page so a user can enter network credentials – no firmware rebuild required.
The whole integration is three pieces of application code:
Once the ESP32 reports its MAC, the library registers two network interfaces: a station (STA) that joins your WiFi network, and an access point (AP) used for provisioning.
This example does NOT embed an ESP32 firmware image and cannot push OTA updates – see the OTA-capable variants under "Related Examples" below.
The application prints a menu on the serial debug port (115200 baud):
| Key | Function |
|---|---|
| N | Start a WiFi scan |
| R | Show last scan results |
| I | Show interface info (STA/AP state, IPs, ESP32 firmware version) |
| W | Push the current config to the ESP32 |
| A | Turn AP mode on |
| a | Turn AP mode off |
| P | Show the ARP cache |
Press any other key to reprint the menu.
The example serves a single landing page (html/index.html) styled with the shared NetBurner SDK example look – a self-contained stylesheet, no framework or CDN. It links to the /wifi provisioning page. The provisioning UI itself is served by the ESP32-C5 library, not from this example's html/ folder.
Adding a new host platform is a small port – see platform/esp32_c5_wifi_mod/Porting_To_New_Platforms.md.