uploaded 1 week ago
OTA API is a component for ESP-IDF that simplifies HTTPS over-the-air firmware updates for ESP32-based applications. Configure the firmware URL and an optional server certificate in a single struct, then run the update synchronously or in a background task that automatically reboots into the new firmware.

4 examples

  • advanced
    Demonstrates a console-controlled OTA lifecycle with progress, cancellation, rollback, and trial confirmation.
    11.56 KB
  • basic
    Full OTA flow using ota-api: connects to Wi-Fi or Ethernet, prints firmware hashes, downloads an image, and reboots.
    6.02 KB
  • on_demand
    This example updates firmware only when requested, not at boot. Failed updates return an error and allow retries.
    6.92 KB
  • rollback
    Self-test and automatic rollback with the ota-api component, ported from ESP-IDF's native_ota_example.
    8.46 KB