Add admin firmware upload support

Implement authenticated HTTPS OTA uploads with bounded streaming, image
validation, reboot coordination, and lifecycle exclusion. Add the admin
UI,
regression tests, and Phase 10 acceptance documentation.
This commit is contained in:
2026-09-18 22:22:11 +02:00
parent 4f628a4098
commit 31a22eba06
31 changed files with 1442 additions and 88 deletions
+3
View File
@@ -13,6 +13,7 @@
#include "esp_heap_caps.h"
#include "esp_log.h"
#include "esp_system.h"
#include "web_firmware_update.h"
#include "esp_timer.h"
#include "freertos/FreeRTOS.h"
#include "freertos/semphr.h"
@@ -265,6 +266,8 @@ static esp_err_t admin_console_perform(const admin_ssh_console_token_t *token,
}
switch (action) {
case ADMIN_SSH_DEFER_REBOOT:
if (web_firmware_update_reserve_reboot() != ESP_OK)
return ESP_ERR_INVALID_STATE;
esp_restart();
return ESP_OK;
case ADMIN_SSH_DEFER_STOP: