MCPcopy Create free account
hub / github.com/evcc-io/evcc / connected

Method connected

core/loadpoint.go:1020–1023  ·  view source on GitHub ↗

connected returns the EVs connection state

()

Source from the content-addressed store, hash-verified

1018
1019// connected returns the EVs connection state
1020func (lp *Loadpoint) connected() bool {
1021 status := lp.GetStatus()
1022 return status == api.StatusB || status == api.StatusC
1023}
1024
1025// charging returns the EVs charging state
1026func (lp *Loadpoint) charging() bool {

Callers 6

syncChargerMethod · 0.95
UpdateMethod · 0.95
vehicleSocPollAllowedMethod · 0.95
plannerActiveMethod · 0.95

Calls 1

GetStatusMethod · 0.95

Tested by

no test coverage detected