|
DeterministicESPAsyncWebServer v6.28.0
Zero-allocation, bounded-execution async HTTP server for ESP32
|
OTA rollback protection / soft-brick safeguard (DETWS_ENABLE_OTA_ROLLBACK). More...
Go to the source code of this file.
OTA rollback protection / soft-brick safeguard (DETWS_ENABLE_OTA_ROLLBACK).
After an OTA update the new image boots in the PENDING_VERIFY state. This service decides, each tick, whether to commit it (a self-test passed), roll back to the previous image (self-test failed, or the confirm window elapsed without success), or keep waiting - so a bad update self-heals instead of soft-bricking. The decision is a pure function (host-tested); the commit / rollback wrap esp_ota_ops on ESP32. Needs the bootloader's app-rollback support.
Definition in file ota_rollback.h.