]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp16): track diagnosticsStatus and extract composite schedule helper
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 19:22:37 +0000 (20:22 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 19:22:37 +0000 (20:22 +0100)
commit4d2ca3abb934fd73439aadb02a820ab249222519
tree757e51968a66412a0f9c425ecd68e9eef2c4fd90
parentd35e48b1696d8a12da314489e293181c21c79865
refactor(ocpp16): track diagnosticsStatus and extract composite schedule helper

- Add diagnosticsStatus to ChargingStationInfo, set at each
  DiagnosticsStatusNotification send point (Uploading, Uploaded,
  UploadFailed). TriggerMessage now reports actual diagnostics status
  instead of hardcoded Idle, mirroring the firmwareStatus pattern.

- Extract composeCompositeSchedule() private method, eliminating
  ~120 lines of duplicated profile preparation logic between the
  connectorId=0 and connectorId>0 branches of GetCompositeSchedule.
src/charging-station/ocpp/1.6/OCPP16IncomingRequestService.ts
src/types/ChargingStationInfo.ts