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

Method SetThresholds

core/loadpoint_api.go:512–520  ·  view source on GitHub ↗

SetThresholds sets the PV mode threshold settings

(thresholds loadpoint.ThresholdsConfig)

Source from the content-addressed store, hash-verified

510
511// SetThresholds sets the PV mode threshold settings
512func (lp *Loadpoint) SetThresholds(thresholds loadpoint.ThresholdsConfig) {
513 lp.Lock()
514 defer lp.Unlock()
515
516 lp.log.DEBUG.Printf("set thresholds: %+v", thresholds)
517
518 // apply immediately
519 lp.setThresholds(thresholds)
520}
521
522// GetEnableThreshold gets the loadpoint enable threshold
523func (lp *Loadpoint) GetEnableThreshold() float64 {

Callers

nothing calls this directly

Calls 4

LockMethod · 0.95
UnlockMethod · 0.95
setThresholdsMethod · 0.95
PrintfMethod · 0.80

Tested by

no test coverage detected