OpenWB Pro: add rfid support (#13011)
This commit is contained in:
parent
6fd387d4f3
commit
76b09d4a9a
2 changed files with 6 additions and 1 deletions
|
|
@ -215,5 +215,9 @@ func (wb *OpenWBPro) Identify() (string, error) {
|
|||
return "", err
|
||||
}
|
||||
|
||||
return res.VehicleID, err
|
||||
if res.VehicleID != "" {
|
||||
return res.VehicleID, nil
|
||||
}
|
||||
|
||||
return res.RfidTag, nil
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ type Status struct {
|
|||
PhasesInUse int `json:"phases_in_use"`
|
||||
OfferedCurrent float64 `json:"offered_current"`
|
||||
EvseSignaling string `json:"evse_signaling"`
|
||||
RfidTag string `json:"rfid_tag"`
|
||||
VehicleID string `json:"vehicle_id"`
|
||||
Soc int `json:"soc_value"`
|
||||
SocTimestamp int64 `json:"soc_timestamp"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue