]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): consolidate variable reading through shared helpers
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 10:14:47 +0000 (12:14 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 10:14:47 +0000 (12:14 +0200)
commit5a02c45a859cdfedabf582328d62e964102e77d8
treef0ea37eff11d226bcb510e00f7f4cb4606c846a3
parentbd88bf74971e7f012552ff9c1729170e873e0518
refactor(ocpp): consolidate variable reading through shared helpers

Promote readVariableAs* helpers to public on OCPP20ServiceUtils.
Replace 10 inline getVariables + manual parsing patterns with
helper calls. Remove duplicated getVariableValue from
CertSigningRetryManager and parseBooleanVariable from
OCPP20AuthAdapter. Replace last parseInt with convertToIntOrNaN.
src/charging-station/ocpp/2.0/OCPP20CertSigningRetryManager.ts
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts