From 12650b2d3c2d0741a0ae71e660230c8fd12d5926 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 28 Mar 2026 01:09:34 +0100 Subject: [PATCH] fix: map WebSocketPingInterval to OCPPCommCtrlr per OCPP 2.0.1 spec MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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. --- src/assets/station-templates/keba-ocpp2.station-template.json | 2 +- src/charging-station/ConfigurationKeyUtils.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 ), ], -- 2.53.0