charging returns the EVs charging state
()
| 1024 | |
| 1025 | // charging returns the EVs charging state |
| 1026 | func (lp *Loadpoint) charging() bool { |
| 1027 | return lp.GetStatus() == api.StatusC |
| 1028 | } |
| 1029 | |
| 1030 | // setStatus updates the internal charging state according to EV |
| 1031 | func (lp *Loadpoint) setStatus(status api.ChargeStatus) { |