From: Jérôme Benoit Date: Sat, 28 Mar 2026 00:17:49 +0000 (+0100) Subject: fix: correct WebSocketPingInterval documentation and registry default X-Git-Tag: ocpp-server@v4.0.0~15 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=06f62f72908f43e3ef9bcb1cd55310830d5a612f;p=e-mobility-charging-stations-simulator.git 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 --- 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,