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

Method GetVehicle

core/loadpoint_api.go:838–842  ·  view source on GitHub ↗

GetVehicle gets the active vehicle

()

Source from the content-addressed store, hash-verified

836
837// GetVehicle gets the active vehicle
838func (lp *Loadpoint) GetVehicle() api.Vehicle {
839 lp.vmu.RLock()
840 defer lp.vmu.RUnlock()
841 return lp.vehicle
842}
843
844// SetVehicle sets the active vehicle
845func (lp *Loadpoint) SetVehicle(vehicle api.Vehicle) {

Callers 15

setLimitMethod · 0.95
socBasedPlanningMethod · 0.95
vehicleHasSocMethod · 0.95
minSocNotReachedMethod · 0.95
publishSocAndRangeMethod · 0.95
wakeUpVehicleMethod · 0.95
vehicleHasFeatureMethod · 0.95
vehicleOdometerMethod · 0.95
vehicleClimateActiveMethod · 0.95
EffectivePriorityMethod · 0.95

Calls 2

RLockMethod · 0.80
RUnlockMethod · 0.80

Tested by

no test coverage detected