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

Method SetMeterRef

core/loadpoint_api.go:50–60  ·  view source on GitHub ↗

SetMeter sets the loadpoint meter

(ref string)

Source from the content-addressed store, hash-verified

48
49// SetMeter sets the loadpoint meter
50func (lp *Loadpoint) SetMeterRef(ref string) {
51 if !lp.isConfigurable() {
52 lp.log.ERROR.Println("cannot set meter ref: not configurable")
53 return
54 }
55
56 lp.Lock()
57 defer lp.Unlock()
58 lp.MeterRef = ref
59 lp.settings.SetString(keys.Meter, ref)
60}
61
62// GetCircuitName returns the loadpoint circuit
63func (lp *Loadpoint) GetCircuitRef() string {

Callers

nothing calls this directly

Calls 5

isConfigurableMethod · 0.95
LockMethod · 0.95
UnlockMethod · 0.95
PrintlnMethod · 0.80
SetStringMethod · 0.65

Tested by

no test coverage detected