SetMeter sets the loadpoint meter
(ref string)
| 48 | |
| 49 | // SetMeter sets the loadpoint meter |
| 50 | func (lp *Loadpoint) SetMeterRef(ref string) { |
| 51 | if !lp.isConfigurable() { |
| 52 | lp.log.ERROR.Println("cannot set meter ref: not configurable") |
| 53 | return |
| 54 | } |
| 55 | |
| 56 | lp.Lock() |
| 57 | defer lp.Unlock() |
| 58 | lp.MeterRef = ref |
| 59 | lp.settings.SetString(keys.Meter, ref) |
| 60 | } |
| 61 | |
| 62 | // GetCircuitName returns the loadpoint circuit |
| 63 | func (lp *Loadpoint) GetCircuitRef() string { |
nothing calls this directly
no test coverage detected