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

Method SetSocConfig

core/loadpoint_api.go:459–467  ·  view source on GitHub ↗

SetSoc sets the PV mode threshold settings

(soc loadpoint.SocConfig)

Source from the content-addressed store, hash-verified

457
458// SetSoc sets the PV mode threshold settings
459func (lp *Loadpoint) SetSocConfig(soc loadpoint.SocConfig) {
460 lp.Lock()
461 defer lp.Unlock()
462
463 lp.log.DEBUG.Printf("set soc config: %+v", soc)
464
465 // apply immediately
466 lp.setSocConfig(soc)
467}
468
469// GetUI returns the display-only ui settings
470func (lp *Loadpoint) GetUI() loadpoint.UIConfig {

Callers

nothing calls this directly

Calls 4

LockMethod · 0.95
UnlockMethod · 0.95
setSocConfigMethod · 0.95
PrintfMethod · 0.80

Tested by

no test coverage detected