new meter
This commit is contained in:
16
components/rest_api/include/auth_api.h
Executable file
16
components/rest_api/include/auth_api.h
Executable file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "esp_http_server.h"
|
||||
|
||||
/**
|
||||
* @brief Registra os handlers de autenticação e gerenciamento de usuários
|
||||
*/
|
||||
void register_auth_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
16
components/rest_api/include/dashboard_api.h
Normal file
16
components/rest_api/include/dashboard_api.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "esp_http_server.h"
|
||||
|
||||
/**
|
||||
* @brief Registra o handler da dashboard (status geral do sistema)
|
||||
*/
|
||||
void register_dashboard_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
16
components/rest_api/include/evse_settings_api.h
Executable file
16
components/rest_api/include/evse_settings_api.h
Executable file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "esp_http_server.h"
|
||||
|
||||
/**
|
||||
* @brief Registra os handlers de configuração elétrica e limites de carregamento
|
||||
*/
|
||||
void register_evse_settings_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
14
components/rest_api/include/loadbalancing_settings_api.h
Normal file
14
components/rest_api/include/loadbalancing_settings_api.h
Normal file
@@ -0,0 +1,14 @@
|
||||
// =========================
|
||||
// loadbalancing_settings_api.h
|
||||
// =========================
|
||||
|
||||
#ifndef LOADBALANCING_SETTINGS_API_H
|
||||
#define LOADBALANCING_SETTINGS_API_H
|
||||
|
||||
#include "esp_err.h"
|
||||
#include "esp_http_server.h"
|
||||
|
||||
// Função para registrar os manipuladores de URI para as configurações de load balancing e solar
|
||||
void register_loadbalancing_settings_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#endif // LOADBALANCING_SETTINGS_API_H
|
||||
14
components/rest_api/include/meters_settings_api.h
Normal file
14
components/rest_api/include/meters_settings_api.h
Normal file
@@ -0,0 +1,14 @@
|
||||
// =========================
|
||||
// meters_settings_api.h
|
||||
// =========================
|
||||
|
||||
#ifndef METERS_SETTINGS_API_H
|
||||
#define METERS_SETTINGS_API_H
|
||||
|
||||
#include "esp_err.h"
|
||||
#include "esp_http_server.h"
|
||||
|
||||
// Função para registrar os manipuladores de URI para as configurações dos contadores
|
||||
void register_meters_settings_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#endif // METERS_SETTINGS_API_H
|
||||
16
components/rest_api/include/network_api.h
Executable file
16
components/rest_api/include/network_api.h
Executable file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "esp_http_server.h"
|
||||
|
||||
/**
|
||||
* @brief Registra os handlers de configuração Wi-Fi e MQTT
|
||||
*/
|
||||
void register_network_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
16
components/rest_api/include/ocpp_api.h
Executable file
16
components/rest_api/include/ocpp_api.h
Executable file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "esp_http_server.h"
|
||||
|
||||
/**
|
||||
* @brief Registra os handlers da configuração e status do OCPP
|
||||
*/
|
||||
void register_ocpp_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
13
components/rest_api/include/rest_main.h
Executable file
13
components/rest_api/include/rest_main.h
Executable file
@@ -0,0 +1,13 @@
|
||||
#pragma once
|
||||
|
||||
#include <esp_err.h>
|
||||
#include <esp_vfs.h>
|
||||
|
||||
#define SCRATCH_BUFSIZE (10240)
|
||||
|
||||
typedef struct rest_server_context {
|
||||
char base_path[ESP_VFS_PATH_MAX + 1];
|
||||
char scratch[SCRATCH_BUFSIZE];
|
||||
} rest_server_context_t;
|
||||
|
||||
esp_err_t rest_server_init(const char *base_path);
|
||||
16
components/rest_api/include/static_file_api.h
Normal file
16
components/rest_api/include/static_file_api.h
Normal file
@@ -0,0 +1,16 @@
|
||||
#pragma once
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include "esp_http_server.h"
|
||||
|
||||
/**
|
||||
* @brief Registra o handler para servir arquivos estáticos da web (SPA)
|
||||
*/
|
||||
void register_static_file_handlers(httpd_handle_t server, void *ctx);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user