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

Method charging

core/loadpoint.go:1026–1028  ·  view source on GitHub ↗

charging returns the EVs charging state

()

Source from the content-addressed store, hash-verified

1024
1025// charging returns the EVs charging state
1026func (lp *Loadpoint) charging() bool {
1027 return lp.GetStatus() == api.StatusC
1028}
1029
1030// setStatus updates the internal charging state according to EV
1031func (lp *Loadpoint) setStatus(status api.ChargeStatus) {

Callers 15

syncChargerMethod · 0.95
setLimitMethod · 0.95
effectiveCurrentMethod · 0.95
pvScalePhasesMethod · 0.95
boostPowerMethod · 0.95
pvMaxCurrentMethod · 0.95
publishSocAndRangeMethod · 0.95
UpdateMethod · 0.95

Calls 1

GetStatusMethod · 0.95

Tested by 1

TestNewFunction · 0.76