From: Jérôme Benoit Date: Sat, 28 Mar 2026 00:09:34 +0000 (+0100) Subject: fix: map WebSocketPingInterval to OCPPCommCtrlr per OCPP 2.0.1 spec X-Git-Tag: ocpp-server@v4.0.0~16 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=12650b2d3c2d0741a0ae71e660230c8fd12d5926;p=e-mobility-charging-stations-simulator.git fix: map WebSocketPingInterval to OCPPCommCtrlr per OCPP 2.0.1 spec ChargingStation.WebSocketPingInterval is vendor-specific. The canonical variable per OCPP 2.0.1 Part 4 §8.4 is OCPPCommCtrlr.WebSocketPingInterval. Update both the 1.6→2.0 mapping and the keba-ocpp2 template. --- diff --git a/src/assets/station-templates/keba-ocpp2.station-template.json b/src/assets/station-templates/keba-ocpp2.station-template.json index 5ff0561a..b7029425 100644 --- a/src/assets/station-templates/keba-ocpp2.station-template.json +++ b/src/assets/station-templates/keba-ocpp2.station-template.json @@ -37,7 +37,7 @@ "value": "false" }, { - "key": "ChargingStation.WebSocketPingInterval", + "key": "OCPPCommCtrlr.WebSocketPingInterval", "readonly": false, "value": "60" }, diff --git a/src/charging-station/ConfigurationKeyUtils.ts b/src/charging-station/ConfigurationKeyUtils.ts index 49a9d80e..bbe11c17 100644 --- a/src/charging-station/ConfigurationKeyUtils.ts +++ b/src/charging-station/ConfigurationKeyUtils.ts @@ -75,7 +75,7 @@ const OCPP2_PARAMETER_KEY_MAP = new Map< [ StandardParametersKey.WebSocketPingInterval, buildConfigKey( - OCPP20ComponentName.ChargingStation, + OCPP20ComponentName.OCPPCommCtrlr, StandardParametersKey.WebSocketPingInterval ), ],