Phase 6: SoftAP MTG-Companion web server, /api/last_uid + /api/bind UID pairing, embedded pairing SPA

This commit is contained in:
2026-09-09 18:14:50 +02:00
parent 58b15869e2
commit 8a95e1735a
6 changed files with 406 additions and 1 deletions

28
main/web_server.h Normal file
View File

@@ -0,0 +1,28 @@
/*
* MTG RFID Companion - Registration web server (SoftAP)
*
* Phase 6: Hosts the SoftAP "MTG-Companion" (192.168.4.1) and serves the
* card-pairing SPA plus /api/last_uid and /api/bind endpoints.
*/
#pragma once
#include "esp_err.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Start the SoftAP and HTTP server. Idempotent.
*/
esp_err_t web_server_start(void);
/**
* @brief True if the HTTP server is running.
*/
bool web_server_is_running(void);
#ifdef __cplusplus
}
#endif