Phase 6: SoftAP MTG-Companion web server, /api/last_uid + /api/bind UID pairing, embedded pairing SPA
This commit is contained in:
28
main/web_server.h
Normal file
28
main/web_server.h
Normal 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
|
||||
Reference in New Issue
Block a user