]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
refactor(ocpp): consolidate variable access in auth adapter
authorJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 11:58:12 +0000 (13:58 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Thu, 2 Apr 2026 11:58:12 +0000 (13:58 +0200)
commit52c94b9a6381f03bd48440323a30c770693ed6b7
treeceebfadf873743358eb69eacafc12bbd9d6a5c79
parent3deaeab6cd24a1cae2a8c2f4b7523f0a0a2c7275
refactor(ocpp): consolidate variable access in auth adapter

Remove getVariableValue/getDefaultVariableValue wrappers from
OCPP20AuthAdapter in favor of OCPP20ServiceUtils.readVariableAs*
helpers. Fixes LocalAuthListCtrlr.Enabled default discrepancy
between adapter (true) and registry (false). Add readVariableAsString
helper for consistent string variable access.
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20ServiceUtils.ts
src/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.ts
tests/charging-station/ocpp/auth/adapters/OCPP20AuthAdapter.test.ts