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

Method setLimitSoc

core/loadpoint_api.go:298–302  ·  view source on GitHub ↗

setLimitSoc sets the session limit soc (no mutex)

(soc int)

Source from the content-addressed store, hash-verified

296
297// setLimitSoc sets the session limit soc (no mutex)
298func (lp *Loadpoint) setLimitSoc(soc int) {
299 lp.limitSoc = soc
300 lp.publish(keys.LimitSoc, soc)
301 lp.settings.SetInt(keys.LimitSoc, int64(soc))
302}
303
304// SetLimitSoc sets the session soc limit
305func (lp *Loadpoint) SetLimitSoc(soc int) {

Callers 2

restoreSettingsMethod · 0.95
SetLimitSocMethod · 0.95

Calls 2

publishMethod · 0.95
SetIntMethod · 0.65

Tested by

no test coverage detected