evse_link feature

This commit is contained in:
2025-08-05 16:55:11 +01:00
parent bd587a10c0
commit 0d0dc5b129
35 changed files with 4353 additions and 2257 deletions

View File

@@ -0,0 +1,31 @@
// =========================
// evse_link_config_api.h
// =========================
#ifndef EVSE_LINK_CONFIG_API_H
#define EVSE_LINK_CONFIG_API_H
#include "esp_err.h"
#include "esp_http_server.h"
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief Registra os manipuladores HTTP para configuração do EVSE-Link.
*
* Isso adiciona endpoints GET e POST em /api/v1/config/link
* para inspecionar e atualizar as configurações de link
* (habilitado, modo, self ID).
*
* @param server Handle do servidor HTTP
* @param ctx Contexto do usuário passado aos handlers
*/
void register_link_config_handlers(httpd_handle_t server, void *ctx);
#ifdef __cplusplus
}
#endif
#endif // EVSE_LINK_CONFIG_API_H