From 59c46a9b076cfbe0f7bdc19e31ae245cf15d0dd9 Mon Sep 17 00:00:00 2001 From: pietfried Date: Wed, 15 Nov 2023 17:18:01 +0100 Subject: [PATCH] disconnecting websocket with websocketpp::close::status::going away Signed-off-by: pietfried --- lib/ocpp/v201/charge_point.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ocpp/v201/charge_point.cpp b/lib/ocpp/v201/charge_point.cpp index 915a503a5..127f083dc 100644 --- a/lib/ocpp/v201/charge_point.cpp +++ b/lib/ocpp/v201/charge_point.cpp @@ -164,7 +164,7 @@ void ChargePoint::stop() { this->websocket_timer.stop(); this->client_certificate_expiration_check_timer.stop(); this->v2g_certificate_expiration_check_timer.stop(); - this->disconnect_websocket(websocketpp::close::status::going_away); + this->disconnect_websocket(websocketpp::close::status::normal); this->message_queue->stop(); } @@ -726,7 +726,7 @@ void ChargePoint::init_websocket() { this->websocket->register_closed_callback( [this, connection_options, configuration_slot](const websocketpp::close::status::value reason) { - EVLOG_warning << "Failed to connect to NetworkConfigurationPriority: " + EVLOG_warning << "Closed websocket of NetworkConfigurationPriority: " << this->network_configuration_priority + 1 << " which is configurationSlot: " << configuration_slot;