]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp20): move TransactionEvent(Started) to event listener pattern
authorJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 16:28:14 +0000 (17:28 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Mon, 16 Mar 2026 16:28:14 +0000 (17:28 +0100)
commit65f9d786bc46a274e1cb59edb9194bb87617ec65
treed4f28b7620dc2c8f7208e51b1ebc63845e798369
parent927f8912a498d2f1b4259d6eb95029b0e5bcb628
refactor(ocpp20): move TransactionEvent(Started) to event listener pattern

Move sendTransactionEvent(Started) and startTxUpdatedInterval from
inside handleRequestStartTransaction to a post-response event
listener in the constructor, matching the OCPP 1.6
RemoteStartTransaction pattern where the handler validates and
returns Accepted, then an event triggers the actual StartTransaction
message send.
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts