Add grid and EVSE meter components with load balancer
This commit is contained in:
22
components/meter_orno_modbus/include/orno_modbus.h
Normal file
22
components/meter_orno_modbus/include/orno_modbus.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef ORNO_MODBUS_H_
|
||||
#define ORNO_MODBUS_H_
|
||||
|
||||
#include "esp_err.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef enum {
|
||||
ORNO_METER_GRID,
|
||||
ORNO_METER_EVSE
|
||||
} orno_meter_type_t;
|
||||
|
||||
esp_err_t orno_modbus_init(void);
|
||||
esp_err_t orno_modbus_read_current(orno_meter_type_t type, float *current);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* ORNO_MODBUS_H_ */
|
||||
Reference in New Issue
Block a user