src.nth.io/

summaryrefslogtreecommitdiff
path: root/main/CMakeLists.txt
diff options
context:
space:
mode:
authorLuke Hoersten <[email protected]>2026-06-20 13:03:23 -0500
committerLuke Hoersten <[email protected]>2026-06-20 13:03:23 -0500
commit175dd50ba2a2a6c8d033a9fd4e91f4823f9e210a (patch)
tree2f41235b0a4792822f737953e6fa553383a7bd36 /main/CMakeLists.txt
parent3729f04458e358fab7872b9590d9fdb012f5ddf9 (diff)
firmware: OTA firmware updates via POST /firmware + rollback
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.
Diffstat (limited to 'main/CMakeLists.txt')
-rw-r--r--main/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/main/CMakeLists.txt b/main/CMakeLists.txt
index ee679a2..dbb4d4b 100644
--- a/main/CMakeLists.txt
+++ b/main/CMakeLists.txt
@@ -1,7 +1,8 @@
idf_component_register(
SRC_DIRS "."
INCLUDE_DIRS "."
- REQUIRES driver esp_app_format esp_driver_i2c esp_driver_jpeg esp_eth
- esp_event esp_http_client esp_http_server esp_hw_support
- esp_lcd esp_netif esp_pm esp_timer hal json mdns nvs_flash
+ REQUIRES app_update driver esp_app_format esp_driver_i2c
+ esp_driver_jpeg esp_eth esp_event esp_http_client
+ esp_http_server esp_hw_support esp_lcd esp_netif esp_pm
+ esp_timer hal json mdns nvs_flash
)