GetSoc returns the estimated vehicle soc in %
()
| 855 | |
| 856 | // GetSoc returns the estimated vehicle soc in % |
| 857 | func (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 |
| 865 | func (lp *Loadpoint) StartVehicleDetection() { |
no test coverage detected