Add MeterCurrent interface
This commit is contained in:
parent
4dd1c46497
commit
bbd98d3861
2 changed files with 15 additions and 0 deletions
|
|
@ -37,6 +37,11 @@ type MeterEnergy interface {
|
|||
TotalEnergy() (float64, error)
|
||||
}
|
||||
|
||||
// MeterCurrent is able to provide per-line current A
|
||||
type MeterCurrent interface {
|
||||
Currents() (float64, float64, float64, error)
|
||||
}
|
||||
|
||||
// Charger is able to provide current charging status and to enable/disabler charging
|
||||
type Charger interface {
|
||||
Status() (ChargeStatus, error)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue