From 7bca010e8b0afe1bf26d322b31a6b29bbda34ba0 Mon Sep 17 00:00:00 2001 From: premultiply <4681172+premultiply@users.noreply.github.com> Date: Tue, 13 Aug 2024 15:55:20 +0200 Subject: [PATCH] Ocpp: tweak EVBox (#15279) --- charger/ocpp.go | 5 +++++ charger/ocpp/const.go | 1 + 2 files changed, 6 insertions(+) diff --git a/charger/ocpp.go b/charger/ocpp.go index 81663f86e..324e8d896 100644 --- a/charger/ocpp.go +++ b/charger/ocpp.go @@ -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 { diff --git a/charger/ocpp/const.go b/charger/ocpp/const.go index 23adf372a..872f0fd67 100644 --- a/charger/ocpp/const.go +++ b/charger/ocpp/const.go @@ -17,4 +17,5 @@ const ( // Vendor specific keys KeyAlfenPlugAndChargeIdentifier = "PlugAndChargeIdentifier" + KeyEvBoxSupportedMeasurands = "evb_SupportedMeasurands" )