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

View File

@@ -40,6 +40,17 @@ esp_err_t storage_read_text(const char *path, char **out_buf, size_t *out_len);
*/
esp_err_t storage_write_text(const char *path, const char *text);
/**
* @brief Add/replace a UID->card-name mapping in /spiffs/mappings.json.
*/
esp_err_t storage_manager_bind_uid(const char *uid, const char *card_name);
/**
* @brief Lookup a card name for a UID in mappings.json. Caller frees *out.
* @return ESP_OK and non-NULL *out on success; ESP_ERR_NOT_FOUND otherwise.
*/
esp_err_t storage_manager_lookup_name(const char *uid, char **out);
#ifdef __cplusplus
}
#endif