]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp20): extract named constants for hardcoded sleep/timeout values
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 22:24:50 +0000 (23:24 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 22:24:50 +0000 (23:24 +0100)
commitadfe8d486791632d1e03b9ff58be02ba4fa4c9da
treef9c55b242adb36083e8e700f182fa7ddf1d7d4e2
parentb3827b5bdfa3d2de0520f6489bea4d733933d5a5
refactor(ocpp20): extract named constants for hardcoded sleep/timeout values

Replace 8 magic numbers with semantic constants:
- FIRMWARE_STATUS_DELAY_MS, FIRMWARE_INSTALL_DELAY_MS,
  FIRMWARE_VERIFY_DELAY_MS for firmware lifecycle simulation
- LOG_UPLOAD_STEP_DELAY_MS for log upload simulation
- RESET_DELAY_MS, RESET_IDLE_MONITOR_INTERVAL_MS for reset scheduling
- CERTIFICATE_VERIFY_DELAY_MS for auth strategy retry delay
src/charging-station/ocpp/2.0/OCPP20Constants.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/auth/strategies/CertificateAuthStrategy.ts