Add grid and EVSE meter components with load balancer

This commit is contained in:
2025-06-08 14:21:10 +01:00
parent e77ea55047
commit 56231fa788
23 changed files with 289 additions and 7 deletions

View File

@@ -0,0 +1,24 @@
#ifndef GRIDMETER_H_
#define GRIDMETER_H_
#include "esp_err.h"
#include "esp_event_base.h"
#ifdef __cplusplus
extern "C" {
#endif
ESP_EVENT_DECLARE_BASE(GRIDMETER_EVENT);
typedef enum {
GRIDMETER_EVENT_UPDATE
} gridmeter_event_id_t;
esp_err_t gridmeter_init(void);
esp_err_t gridmeter_read_current(float *current);
#ifdef __cplusplus
}
#endif
#endif /* GRIDMETER_H_ */