]> Piment Noir Git Repositories - e-mobility-charging-stations-simulator.git/commitdiff
fix: correct WebSocketPingInterval documentation and registry default
authorJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Mar 2026 00:17:49 +0000 (01:17 +0100)
committerJérôme Benoit <jerome.benoit@sap.com>
Sat, 28 Mar 2026 00:17:49 +0000 (01:17 +0100)
- 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
src/charging-station/ocpp/2.0/OCPP20VariableRegistry.ts

index ff618e7507ec70da13dcfd3afc46efd12a009e69..5c0e6817870a4f9f44b655f0e4c3ee9fa19f386e 100644 (file)
--- 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
 
index 7251234f832e7c67ec6b2618a5d7b10d58c2f02b..1a44e366f72297b31c1250eba561c31b11fb3636 100644 (file)
@@ -1455,7 +1455,7 @@ export const VARIABLE_REGISTRY: Record<string, VariableMetadata> = {
     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,