OCPP Connection
Not supported on this hardware!
ocpp/config
OCPP connection configuration
# $HOST e.g. warp2-AbCd
Read
curl http://$HOST/ocpp/config
{
"enable_ocpp": false,
"url": "",
"identity": "WARP-AAA",
// Not returned
"pass": null,
"cs_0": null,
"cs_1": null,
"cs_2": null,
"cs_3": null,
"cs_4": null,
"cfg0": null,
"cfg1": null,
"cfg2": null,
"cfg3": null
}
Write
curl http://$HOST/ocpp/config -d '{
"enable": true,
"url": "wss://10.0.3.5:8180/steve/websocket/CentralSystemService",
"identity": "warp2-AbCd",
"enable_auth": true,
"pass": "mypassword",
"cert_id": -1
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp2/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ocpp/config
{
"enable_ocpp": false,
"url": "",
"identity": "WARP-AAA",
// Not returned
"pass": null,
"cs_0": null,
"cs_1": null,
"cs_2": null,
"cs_3": null,
"cs_4": null,
"cfg0": null,
"cfg1": null,
"cfg2": null,
"cfg3": null
}
Write
With MQTT on $PREFIX/ocpp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ocpp/config_update -m '{
"enable": true,
"url": "wss://10.0.3.5:8180/steve/websocket/CentralSystemService",
"identity": "warp2-AbCd",
"enable_auth": true,
"pass": "mypassword",
"cert_id": -1
}'
| Name | Description |
|---|---|
enablebool | Indicates whether a connection to the configured OCPP server should be established. For control functionality in addition to state readout, |
urlstring | Endpoint URL of the OCPP server. Must start with the scheme ws:// (unencrypted!) or wss:// (TLS-encrypted) and must not end with /. |
identitystring | Identity of the charger. Appended to the endpoint URL and used as username for authorization |
enable_authbool | Indicates that authorization via HTTP Basic Auth should be performed. |
passstring | HTTP Basic Auth password. If the password is exactly 40 characters long and consists only of hex characters (0-9, A-F, a-f), it is treated as a hexadecimal representation of a 20-byte authorization key. |
cert_idint | ID of the TLS certificate to be used for establishing a TLS-encrypted connection.
|
ocpp/reset
Resets the OCPP state. Unsent transaction data will be lost!
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
ocpp/config
OCPP connection configuration
# $HOST e.g. warp3-AbCd
Read
curl http://$HOST/ocpp/config
{
"enable_ocpp": false,
"url": "",
"identity": "WARP-AAA",
// Not returned
"pass": null,
"cs_0": null,
"cs_1": null,
"cs_2": null,
"cs_3": null,
"cs_4": null,
"cfg0": null,
"cfg1": null,
"cfg2": null,
"cfg3": null
}
Write
curl http://$HOST/ocpp/config -d '{
"enable": true,
"url": "wss://10.0.3.5:8180/steve/websocket/CentralSystemService",
"identity": "warp3-AbCd",
"enable_auth": true,
"pass": "mypassword",
"cert_id": -1
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp3/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ocpp/config
{
"enable_ocpp": false,
"url": "",
"identity": "WARP-AAA",
// Not returned
"pass": null,
"cs_0": null,
"cs_1": null,
"cs_2": null,
"cs_3": null,
"cs_4": null,
"cfg0": null,
"cfg1": null,
"cfg2": null,
"cfg3": null
}
Write
With MQTT on $PREFIX/ocpp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ocpp/config_update -m '{
"enable": true,
"url": "wss://10.0.3.5:8180/steve/websocket/CentralSystemService",
"identity": "warp3-AbCd",
"enable_auth": true,
"pass": "mypassword",
"cert_id": -1
}'
| Name | Description |
|---|---|
enablebool | Indicates whether a connection to the configured OCPP server should be established. For control functionality in addition to state readout, |
urlstring | Endpoint URL of the OCPP server. Must start with the scheme ws:// (unencrypted!) or wss:// (TLS-encrypted) and must not end with /. |
identitystring | Identity of the charger. Appended to the endpoint URL and used as username for authorization |
enable_authbool | Indicates that authorization via HTTP Basic Auth should be performed. |
passstring | HTTP Basic Auth password. If the password is exactly 40 characters long and consists only of hex characters (0-9, A-F, a-f), it is treated as a hexadecimal representation of a 20-byte authorization key. |
cert_idint | ID of the TLS certificate to be used for establishing a TLS-encrypted connection.
|
ocpp/reset
Resets the OCPP state. Unsent transaction data will be lost!
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}
Not supported on this hardware!
Not supported on this hardware!
ocpp/config
OCPP connection configuration
# $HOST e.g. warp-AbCd
Read
curl http://$HOST/ocpp/config
{
"enable_ocpp": false,
"url": "",
"identity": "WARP-AAA",
// Not returned
"pass": null,
"cfg0": null,
"cfg1": null,
"cfg2": null,
"cfg3": null
}
Write
curl http://$HOST/ocpp/config -d '{
"enable": true,
"url": "wss://10.0.3.5:8180/steve/websocket/CentralSystemService",
"identity": "warp-AbCd",
"enable_auth": true,
"pass": "mypassword",
"cert_id": -1
}'
# $BROKER e.g. my_mosquitto.localdomain
# $PREFIX e.g. warp/AbCd
Read
mosquitto_sub -v -C 1 -h $BROKER -t $PREFIX/ocpp/config
{
"enable_ocpp": false,
"url": "",
"identity": "WARP-AAA",
// Not returned
"pass": null,
"cfg0": null,
"cfg1": null,
"cfg2": null,
"cfg3": null
}
Write
With MQTT on $PREFIX/ocpp/config_update
mosquitto_pub -h $BROKER -t $PREFIX/ocpp/config_update -m '{
"enable": true,
"url": "wss://10.0.3.5:8180/steve/websocket/CentralSystemService",
"identity": "warp-AbCd",
"enable_auth": true,
"pass": "mypassword",
"cert_id": -1
}'
| Name | Description |
|---|---|
enablebool | Indicates whether a connection to the configured OCPP server should be established. For control functionality in addition to state readout, |
urlstring | Endpoint URL of the OCPP server. Must start with the scheme ws:// (unencrypted!) or wss:// (TLS-encrypted) and must not end with /. |
identitystring | Identity of the charger. Appended to the endpoint URL and used as username for authorization |
enable_authbool | Indicates that authorization via HTTP Basic Auth should be performed. |
passstring | HTTP Basic Auth password. If the password is exactly 40 characters long and consists only of hex characters (0-9, A-F, a-f), it is treated as a hexadecimal representation of a 20-byte authorization key. |
cert_idint | ID of the TLS certificate to be used for establishing a TLS-encrypted connection.
|
ocpp/reset
Resets the OCPP state. Unsent transaction data will be lost!
Empty payload. One of the following values must be passed: null, "", false, 0, [] or {}