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

Method GetMode

core/loadpoint_api.go:146–150  ·  view source on GitHub ↗

GetMode returns loadpoint charge mode

()

Source from the content-addressed store, hash-verified

144
145// GetMode returns loadpoint charge mode
146func (lp *Loadpoint) GetMode() api.ChargeMode {
147 lp.RLock()
148 defer lp.RUnlock()
149 return lp.mode
150}
151
152// setMode sets loadpoint charge mode (no mutex)
153func (lp *Loadpoint) setMode(mode api.ChargeMode) {

Callers 7

defaultModeMethod · 0.95
PrepareMethod · 0.95
UpdateMethod · 0.95
TestDefaultVehicleFunction · 0.95

Calls 2

RLockMethod · 0.95
RUnlockMethod · 0.95

Tested by 3

TestDefaultVehicleFunction · 0.76