Add typed serial settings operations

Route bounded admin mutations through the existing administration
dispatcher,
covering apply, lifecycle, persistence, authorization, and result
tracking.
Add the browser controls, automatic result refresh, regression coverage,
and
phase documentation.
This commit is contained in:
2026-09-08 00:25:31 +02:00
parent 5a2aa0d4d8
commit 42548f6334
27 changed files with 1398 additions and 42 deletions
+14
View File
@@ -0,0 +1,14 @@
/* SPDX-License-Identifier: GPL-3.0-only */
#pragma once
#include <stdint.h>
#include "esp_http_server.h"
/* HTTPD owns requests/responses; the existing admin dispatcher alone executes.
* One global slot rejects mutations while pending (including execution). GET
* exposes only the caller's session result; a later admitted operation replaces
* that result, so this is not a durable history or an idempotent retry API.
* The 30-second deadline is checked when dequeued, not a completion deadline or
* a timer that frees the slot. Revocation/expiry cancels before operation
* admission; admitted serial/NVS work may finish after the session is gone. */
esp_err_t web_serial_settings_handler(httpd_req_t *request);
void web_serial_settings_execute(uint32_t id);