]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commit
fix(ocpp20): isolate VariableManager overrides per station
authorJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 18:19:07 +0000 (19:19 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sun, 15 Mar 2026 18:19:07 +0000 (19:19 +0100)
commit77bd1a0315b3a3b75a47ed6f08d4c4eb5d35feed
treeb8466419d349925f76cbec47d039df259942f783
parent47cdf2bbee7d500ae063beed7d68344298b1057f
fix(ocpp20): isolate VariableManager overrides per station

runtimeOverrides, minSetOverrides, and maxSetOverrides were stored as flat
Maps on the singleton OCPP20VariableManager, causing SetVariables on one
station to affect all others sharing the same service instance.

Apply the same Map<stationId, Map<key, value>> pattern already used by
invalidVariables in the same class. resetRuntimeOverrides now accepts
optional stationId, matching the invalidateMappingsCache API.
src/charging-station/ocpp/2.0/OCPP20IncomingRequestService.ts
src/charging-station/ocpp/2.0/OCPP20VariableManager.ts