diff --git a/config/v201/config.json b/config/v201/config.json index 6acf98d623..1d71ebc1da 100644 --- a/config/v201/config.json +++ b/config/v201/config.json @@ -179,7 +179,7 @@ "NetworkConnectionProfiles": { "variable_name": "NetworkConnectionProfiles", "attributes": { - "Actual": "[{\"configurationSlot\": 1, \"connectionData\": {\"messageTimeout\": 30, \"ocppCsmsUrl\": \"ws://localhost:9000/cp001\", \"ocppInterface\": \"Wired0\", \"ocppTransport\": \"JSON\", \"ocppVersion\": \"OCPP20\", \"securityProfile\": 1}}]" + "Actual": "[{\"configurationSlot\": 1, \"connectionData\": {\"messageTimeout\": 30, \"ocppCsmsUrl\": \"127.0.0.1:8443/steve/websocket/CentralSystemService/\", \"ocppInterface\": \"Wired0\", \"ocppTransport\": \"JSON\", \"ocppVersion\": \"OCPP20\", \"securityProfile\": 1}}]" } }, "ChargeBoxSerialNumber": { @@ -682,4 +682,4 @@ } } } -] \ No newline at end of file +] diff --git a/lib/ocpp/common/websocket/websocket_tls.cpp b/lib/ocpp/common/websocket/websocket_tls.cpp index 7c1903a367..cba068d8b6 100644 --- a/lib/ocpp/common/websocket/websocket_tls.cpp +++ b/lib/ocpp/common/websocket/websocket_tls.cpp @@ -55,7 +55,7 @@ bool WebsocketTLS::connect() { websocket_thread.reset(new websocketpp::lib::thread(&tls_client::run, &this->wss_client)); this->wss_client.set_tls_init_handler( - websocketpp::lib::bind(&WebsocketTLS::on_tls_init, this, this->connection_options.csms_uri.get_chargepoint_id(), + websocketpp::lib::bind(&WebsocketTLS::on_tls_init, this, this->connection_options.csms_uri.get_hostname(), websocketpp::lib::placeholders::_1, this->connection_options.security_profile)); this->reconnect_callback = [this](const websocketpp::lib::error_code& ec) {