src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/ota.c
AgeCommit message (Collapse)AuthorFilesLines
2026-06-20firmware: OTA firmware updates via POST /firmware + rollbackLuke Hoersten1-0/+52
Streams the raw .bin to the inactive ota_0/ota_1 slot via esp_ota_*, flips otadata, replies 200, reboots after 500 ms. Single-shot guarded by atomic_flag (409 on concurrent). CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE armed: new images boot pending-verify and ota_arm_healthy_timer marks them valid after 30 s of healthy uptime; otherwise the bootloader reverts on next reset. /state gains ota_state.