From: Jérôme Benoit Date: Mon, 13 Nov 2023 09:15:02 +0000 (+0100) Subject: fix: ensure custom meterValues values are taken X-Git-Tag: v1.2.24~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=856e8f67312da4acabeff1bd8452f02658a22fdb;p=e-mobility-charging-stations-simulator.git fix: ensure custom meterValues values are taken Signed-off-by: Jérôme Benoit --- diff --git a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts index 63339cf2..a752ac99 100644 --- a/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts +++ b/src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts @@ -372,7 +372,7 @@ export class OCPP16ServiceUtils extends OCPPServiceUtils { connectorMinimumPowerPerPhase / unitDivider, ); } else { - powerMeasurandValues.L1 = powerSampledValueTemplate.value + powerMeasurandValues.L1 = isNotEmptyString(powerSampledValueTemplate.value) ? getRandomFloatFluctuatedRounded( OCPP16ServiceUtils.getLimitFromSampledValueTemplateCustomValue( powerSampledValueTemplate.value,