Ocpp: tweak EVBox (#15279)

This commit is contained in:
premultiply 2024-08-13 15:55:20 +02:00 • committed by GitHub
parent 78b2067c01
commit 7bca010e8b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 6 additions and 0 deletions

View file

@ -239,6 +239,11 @@ func NewOCPP(id string, connector int, idtag string,
c.idtag = *opt.Value
c.log.DEBUG.Printf("overriding default `idTag` with Alfen-specific value: %s", c.idtag)
}
case ocpp.KeyEvBoxSupportedMeasurands:
if meterValues == "" {
meterValues = *opt.Value
}
}
if err != nil {

View file

@ -17,4 +17,5 @@ const (
// Vendor specific keys
KeyAlfenPlugAndChargeIdentifier = "PlugAndChargeIdentifier"
KeyEvBoxSupportedMeasurands = "evb_SupportedMeasurands"
)