Crate esp_ota_nostd

Source

Modules§

partitions

Functions§

get_booted_partition
Find the ota partition we’re currently running on
ota_accept
Mark OTA update as valid. Must be called after an OTA update and reboot to confirm the new firmware works. May also be called after a reboot without OTA update. If the system reboots before an OTA update is accepted the update will be marked as aborted and will not be booted again.
ota_begin
Starts a new OTA update.
ota_is_valid
Returns true if this OTA update has been accepted, i.e. with ota_accept
ota_reject
Explicitly mark an OTA update as invalid. May be called after an OTA update failed, but is not required. If the system reboots before an OTA update is confirmed as valid the update will be marked as aborted and will not be booted again.