connected returns the EVs connection state
()
| 1018 | |
| 1019 | // connected returns the EVs connection state |
| 1020 | func (lp *Loadpoint) connected() bool { |
| 1021 | status := lp.GetStatus() |
| 1022 | return status == api.StatusB || status == api.StatusC |
| 1023 | } |
| 1024 | |
| 1025 | // charging returns the EVs charging state |
| 1026 | func (lp *Loadpoint) charging() bool { |
no test coverage detected