From 82cbef8d50f9dfcd4ec7a17769d8dd9527912f99 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Wed, 16 Nov 2022 20:05:04 +0100 Subject: [PATCH] README.md: Fix UI protocol documentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- README.md | 22 +++++++++++++++------- 1 file changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 083d9c95..6dd60d3a 100644 --- a/README.md +++ b/README.md @@ -568,12 +568,20 @@ Set the Websocket header _Sec-Websocket-Protocol_ to `ui0.0.1`. ###### OCPP commands trigger -The request PDU is the same as the OCPP command payload with some optional fields added to target the simulated charging stations: +- Request: + `ProcedureName`: 'commandName' (the OCPP command name in camel case) + `PDU`: { + `hashIds`: charging station unique identifier strings array (optional, default: all charging stations), + ...`commandPayload` + } (the OCPP command payload with some optional fields added to target the simulated charging stations) -`PDU`: { - `hashIds`: charging station unique identifier strings array (optional, default: all charging stations), - ...`payload` - } +- Response: + `PDU`: { + `status`: 'success' | 'failure', + `hashIdsSucceeded`: charging station unique identifier strings array, + `hashIdsFailed`: charging station unique identifier strings array (optional), + `responsesFailed`: failed responses payload array (optional) + } Examples: @@ -615,7 +623,7 @@ Examples: - **Status Notification** - Request: - `ProcedureName`: 'StatusNotification' + `ProcedureName`: 'statusNotification' `PDU`: { `hashIds`: charging station unique identifier strings array (optional, default: all charging stations), `connectorId`: connector id integer, @@ -634,7 +642,7 @@ Examples: - **Heartbeat** - Request: - `ProcedureName`: 'Heartbeat' + `ProcedureName`: 'heartbeat' `PDU`: { `hashIds`: charging station unique identifier strings array (optional, default: all charging stations), } -- 2.34.1