Reorder buildMeterValue signature so debug is the last optional
parameter, consistent with all other validate*MeasurandValue functions.
Removes need to pass explicit false to reach measurandsKey and context.
chargingStation,
transactionId,
0,
- false,
measurandsKey,
OCPP20ReadingContextEnumType.TRANSACTION_BEGIN
) as OCPP20MeterValue
chargingStation,
transactionId,
0,
- false,
measurandsKey,
OCPP20ReadingContextEnumType.TRANSACTION_END
) as OCPP20MeterValue
chargingStation: ChargingStation,
transactionId: number | string | undefined,
interval: number,
- debug = false,
measurandsKey?: ConfigurationKeyType,
- context?: MeterValueContext
+ context?: MeterValueContext,
+ debug = false
): MeterValue => {
if (transactionId == null) {
return buildEmptyMeterValue()