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

Method GetSoc

core/loadpoint_api.go:857–862  ·  view source on GitHub ↗

GetSoc returns the estimated vehicle soc in %

()

Source from the content-addressed store, hash-verified

855
856// GetSoc returns the estimated vehicle soc in %
857func (lp *Loadpoint) GetSoc() float64 {
858 lp.vmu.RLock()
859 defer lp.vmu.RUnlock()
860
861 return lp.vehicleSoc
862}
863
864// StartVehicleDetection allows triggering vehicle detection for debugging purposes
865func (lp *Loadpoint) StartVehicleDetection() {

Callers 1

publishChargeProgressMethod · 0.95

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected