From 06f62f72908f43e3ef9bcb1cd55310830d5a612f Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Sat, 28 Mar 2026 01:17:49 +0100 Subject: [PATCH] fix: correct WebSocketPingInterval documentation and registry default - Remove vendor-specific ChargingStation.WebSocketPingInterval entry from README (already listed under OCPPCommCtrlr per OCPP 2.0.1 spec) - Use Constants.DEFAULT_WEBSOCKET_PING_INTERVAL in OCPPCommCtrlr registry entry instead of hardcoded '30' for single source of truth --- README.md | 1 - src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index ff618e75..5c0e6817 100644 --- a/README.md +++ b/README.md @@ -724,7 +724,6 @@ All kind of OCPP parameters are supported in charging station configuration or c - :white_check_mark: Model (type: string) (units: -) - :white_check_mark: SupplyPhases (type: integer) (units: -) - :white_check_mark: VendorName (type: string) (units: -) -- :white_check_mark: WebSocketPingInterval (type: integer) (units: seconds) **(vendor-specific)** #### ClockCtrlr diff --git a/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts b/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts index 7251234f..1a44e366 100644 --- a/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts +++ b/src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts @@ -1455,7 +1455,7 @@ export const VARIABLE_REGISTRY: Record = { allowZero: true, component: OCPP20ComponentName.OCPPCommCtrlr, dataType: DataEnumType.integer, - defaultValue: '30', + defaultValue: Constants.DEFAULT_WEBSOCKET_PING_INTERVAL.toString(), description: '0 disables client side websocket Ping/Pong. Positive values are interpreted as number of seconds between pings. Negative values are not allowed.', min: 0, -- 2.53.0