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

Method GetChargePower

core/loadpoint_api.go:676–680  ·  view source on GitHub ↗

GetChargePower returns the current charge power

()

Source from the content-addressed store, hash-verified

674
675// GetChargePower returns the current charge power
676func (lp *Loadpoint) GetChargePower() float64 {
677 lp.RLock()
678 defer lp.RUnlock()
679 return lp.chargePower
680}
681
682// GetChargePowerFlexibility returns the flexible amount of current charging power
683func (lp *Loadpoint) GetChargePowerFlexibility(rates api.Rates) float64 {

Callers 1

Calls 2

RLockMethod · 0.95
RUnlockMethod · 0.95

Tested by

no test coverage detected