]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
feat(ocpp): add EncodingMethodEnumType enum for signed meter value encoding methods
authorJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Apr 2026 18:39:26 +0000 (20:39 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Tue, 7 Apr 2026 18:39:26 +0000 (20:39 +0200)
commit8e89879f009ea191ef060e961aec6046394124f1
tree5dd525dbf89378c996b7454e705f665b862e82e8
parent90bb3ab86e864f29c4dbc34749c8725b6c8ed789
feat(ocpp): add EncodingMethodEnumType enum for signed meter value encoding methods

- Add EncodingMethodEnumType enum with OCMF and EDL values based on
  OCA Application Note and OCPP 2.0.1/2.1 specs
- Use enum in SignedMeterData interface and wire types (with string
  union for extensibility)
- Replace hardcoded 'OCMF' string constant with enum value
- Update all tests to use EncodingMethodEnumType consistently
src/charging-station/ocpp/OCPPSignedMeterDataGenerator.ts
src/types/index.ts
src/types/ocpp/1.6/MeterValues.ts
src/types/ocpp/2.0/MeterValues.ts
src/types/ocpp/Configuration.ts
tests/charging-station/ocpp/1.6/OCPP16SignedMeterValues.test.ts
tests/charging-station/ocpp/2.0/OCPP20SignedMeterValues.test.ts
tests/charging-station/ocpp/OCPPSignedMeterDataGenerator.test.ts
tests/types/ocpp/1.6/MeterValues.test.ts