Add basic OCPP support (#395)
This commit is contained in:
parent
9bd8754b85
commit
29ea3c6549
20 changed files with 618 additions and 130 deletions
|
|
@ -62,3 +62,11 @@ func (site *Site) SetMinSoC(soc int) error {
|
|||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// RemoteControl sets remote status demand
|
||||
func (site *Site) RemoteControl(source string, demand RemoteDemand) {
|
||||
site.log.INFO.Println("remote demand:", demand)
|
||||
for _, lp := range site.loadpoints {
|
||||
lp.RemoteControl(source, demand)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue