// aes67_ota: Firmware upload, image checks, rollback self-test. // Core component: must not depend on main/ (project code). #pragma once #include #include "esp_err.h" // Registers /api/ota routes. If the running image is pending verification, starts the // self-test: IP address + own web server answering within 60 s, else roll back. esp_err_t aes67_ota_init(void); // Called with true right before an accepted upload starts writing flash, and with false if that // upload then fails (on success the device reboots). Lets the project quiet heavy work (streaming, // decoding) during the flash writes. Up to 4 callbacks. typedef void (*aes67_ota_update_cb_t)(bool starting); esp_err_t aes67_ota_on_update(aes67_ota_update_cb_t cb);