]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
feat(ocpp): align OCPP 2.0 meter value builder with 1.6 parity
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 1 Apr 2026 22:45:21 +0000 (00:45 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 1 Apr 2026 22:45:21 +0000 (00:45 +0200)
commit21556f732886a9c5c234c143a81668fede3d9991
treee3f19aa31234accf0abdaab22bcab9307f605967
parent3cbdf10bee1e69c8b48685ab2387626ae427a873
feat(ocpp): align OCPP 2.0 meter value builder with 1.6 parity

Add per-phase power/current validation and breakdown to
OCPP 2.0 builder, matching OCPP 1.6 implementation.
Reorder measurands: SoC, Voltage, Power, Current, Energy.

Harmonize MeterValues test structure between versions:
extract 1.6 tests to dedicated file, add cross-version
parameterized builder output tests, add missing 2.0
edge case and interval restart test coverage.
src/charging-station/ocpp/2.0/OCPP20RequestBuilders.ts
tests/charging-station/ChargingStation-Transactions.test.ts
tests/charging-station/helpers/StationHelpers.ts
tests/charging-station/ocpp/1.6/OCPP16ServiceUtils-MeterValues.test.ts [new file with mode: 0644]
tests/charging-station/ocpp/1.6/OCPP16ServiceUtils.test.ts
tests/charging-station/ocpp/2.0/OCPP20ServiceUtils-TransactionEvent.test.ts
tests/charging-station/ocpp/OCPPServiceUtils-meterValues.test.ts