NetBurner 3.5.8
PDF Version
Wifi OTA Auto

Example Path: examples/Wifi/ESP32/WifiOtaAuto

ESP32-C5 WiFi – Auto-Update Example

Overview

This is the recommended starting point for customers who run the ESP32-C5 firmware that ships with the NNDK (i.e. who do not fork or build their own ESP32-C5 image). It has the same WiFi bring-up as Wifi Basic and adds one thing: a one-shot firmware-version check at boot.

After the network is up, UserMain() calls ESP32C5_CheckAndUpdate(). If the ESP32-C5 already runs the version bundled with this NNDK release, it is a no-op. If the versions differ, the bundled image is pushed to the ESP32-C5 over the OTA path automatically – no ESP-IDF build, no .enc.bin handling, and no web upload.

Including <esp32c5/esp32c5_default_fw.h> and calling ESP32C5_CheckAndUpdate() is what pulls the ~800 KB default firmware blob into this application image. (The Basic example, which does neither, ships without the blob.)

Serial Console Commands

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
C Force a CheckAndUpdate re-push (even if versions already match)

Provisioning

Same as Wifi Basic: web UI at http://<device-ip>/wifi; default provisioning AP SSID NetBurnerC5Wifi (5 GHz); the device falls back to its provisioning AP when no STA credentials are stored.

Supported Platforms

  • SOMRT1061

Related Examples

  • Wifi Basic – minimal WiFi bring-up, no OTA.
  • Wifi Web UI – build your own WiFi setup web UI on the public ESP32C5 API instead of using the library's /wifi page.
  • Wifi OTA Upload – push a firmware image chosen in the browser.