Add grid and EVSE meter components with load balancer
This commit is contained in:
24
components/evsemeter/include/evsemeter.h
Normal file
24
components/evsemeter/include/evsemeter.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef EVSEMETER_H_
|
||||
#define EVSEMETER_H_
|
||||
|
||||
#include "esp_err.h"
|
||||
#include "esp_event_base.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
ESP_EVENT_DECLARE_BASE(EVSEMETER_EVENT);
|
||||
|
||||
typedef enum {
|
||||
EVSEMETER_EVENT_UPDATE
|
||||
} evsemeter_event_id_t;
|
||||
|
||||
esp_err_t evsemeter_init(void);
|
||||
esp_err_t evsemeter_read_current(float *current);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* EVSEMETER_H_ */
|
||||
Reference in New Issue
Block a user