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