]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): use buildStatusNotificationRequest helper in TriggerMessage handlers
authorJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 15:03:31 +0000 (16:03 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Wed, 18 Mar 2026 15:03:31 +0000 (16:03 +0100)
commitf611016b6820336b74aaa7fd6f9d37c41b1b150e
treed7bfeefb4fd706c7f8bf7b939d8fdac322176662
parentdb04e1514590d0a79fab7a7e4af34a9b48d86861
refactor(ocpp): use buildStatusNotificationRequest helper in TriggerMessage handlers

Replace inline StatusNotification payload construction in both OCPP 1.6
and 2.0 TriggerMessage handlers with the centralized
buildStatusNotificationRequest helper. Export the helper from
OCPPServiceUtils to make it available.

This eliminates 5 inline duplications of the same payload structure
that risked diverging from the single source of truth.
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/OCPPServiceUtils.ts