]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp2): build meter values payload in broadcast channel for OCPP 2.0.x
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 22 Mar 2026 11:40:27 +0000 (12:40 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 22 Mar 2026 11:40:27 +0000 (12:40 +0100)
commit6833a3b40f4e07b7b022cf0e50efe325143e5e47
tree682c6d8f44ca63b96d3cb9641864ebf152d33b41
parent52b65920de30bfa0a57af115000596251fdea506
fix(ocpp2): build meter values payload in broadcast channel for OCPP 2.0.x

The OCPP 2.0 branch in handleMeterValues was passing the raw broadcast
channel payload through to requestHandler without constructing the
required evseId and meterValue fields. Build the payload using
buildMeterValue and resolve evseId from connectorId, matching the
pattern used by the OCPP 1.6 branch.
src/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.ts
tests/charging-station/broadcast-channel/ChargingStationWorkerBroadcastChannel.test.ts
tests/charging-station/helpers/StationHelpers.ts