blob: a6f7c9bb1c9e1c1d86c387388506e196491a101e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#pragma once
#include "esp_err.h"
// Arms a 30 s one-shot timer; on fire, if the running image is in
// PENDING_VERIFY, calls esp_ota_mark_app_valid_cancel_rollback() so the
// bootloader stops considering this image revertible. Safe to call when
// rollback is disabled or when the image is already marked valid — both
// are no-ops. Call once from app_main after http_api_start.
void ota_arm_healthy_timer(void);
// Returns a short tag for the running image's OTA state, suitable for
// /state JSON. Never NULL.
const char *ota_running_state_str(void);
|