]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): extract buildEmptyMeterValue helper for empty MeterValue construction
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 00:16:06 +0000 (01:16 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 24 Mar 2026 00:19:37 +0000 (01:19 +0100)
commite19ff6c4e109105f061f70525771015dc48fed5c
treee9578c3c62dc228ca03c2f67189ea7230e2ca1ae
parent8fd32d22c9e6f4fe3c63878b488f1eef67aab19d
refactor(ocpp): extract buildEmptyMeterValue helper for empty MeterValue construction

Replace 4 inline { sampledValue: [], timestamp: new Date() } constructions
with buildEmptyMeterValue() helper in OCPPServiceUtils and OCPP16ServiceUtils.
src/charging-station/ocpp/1.6/OCPP16ServiceUtils.ts
src/charging-station/ocpp/OCPPServiceUtils.ts