Skip to content

Commit

Permalink
Revert name change of internal ChargePoint methods
Browse files Browse the repository at this point in the history
Signed-off-by: Wilco den Besten <[email protected]>
  • Loading branch information
WilcodenBesten committed Sep 5, 2024
1 parent 4cd31ad commit f2eb0a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
10 changes: 5 additions & 5 deletions include/ocpp/v201/charge_point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -531,11 +531,11 @@ class ChargePoint : public ChargePointInterface, private ocpp::ChargingStationBa
void init_certificate_expiration_check_timers();
void scheduled_check_client_certificate_expiration();
void scheduled_check_v2g_certificate_expiration();
void on_websocket_connected(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile);
void on_websocket_disconnected(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile);
void on_websocket_connection_failed(ConnectionFailedReason reason);
void websocket_connected_callback(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile);
void websocket_disconnected_callback(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile);
void websocket_connection_failed(ConnectionFailedReason reason);
void update_dm_availability_state(const int32_t evse_id, const int32_t connector_id,
const ConnectorStatusEnum status);
void update_dm_evse_power(const int32_t evse_id, const MeterValue& meter_value);
Expand Down
16 changes: 8 additions & 8 deletions lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,11 @@ ChargePoint::ChargePoint(const std::map<int32_t, int32_t>& evse_connector_struct
std::bind(&ChargePoint::message_callback, this, std::placeholders::_1));

this->connectivity_manager->set_websocket_connected_callback(
std::bind(&ChargePoint::on_websocket_connected, this, std::placeholders::_1, std::placeholders::_2));
std::bind(&ChargePoint::websocket_connected_callback, this, std::placeholders::_1, std::placeholders::_2));
this->connectivity_manager->set_websocket_disconnected_callback(
std::bind(&ChargePoint::on_websocket_disconnected, this, std::placeholders::_1, std::placeholders::_2));
std::bind(&ChargePoint::websocket_disconnected_callback, this, std::placeholders::_1, std::placeholders::_2));
this->connectivity_manager->set_websocket_connection_failed_callback(
std::bind(&ChargePoint::on_websocket_connection_failed, this, std::placeholders::_1));
std::bind(&ChargePoint::websocket_connection_failed, this, std::placeholders::_1));

if (this->callbacks.configure_network_connection_profile_callback.has_value()) {
this->connectivity_manager->set_configure_network_connection_profile_callback(
Expand Down Expand Up @@ -3726,8 +3726,8 @@ void ChargePoint::scheduled_check_v2g_certificate_expiration() {
.value_or(12 * 60 * 60)));
}

void ChargePoint::on_websocket_connected(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile) {
void ChargePoint::websocket_connected_callback(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile) {
this->message_queue->resume(this->message_queue_resume_delay);

const auto& security_profile_cv = ControllerComponentVariables::SecurityProfile;
Expand Down Expand Up @@ -3768,8 +3768,8 @@ void ChargePoint::on_websocket_connected(const int configuration_slot,
}
}

void ChargePoint::on_websocket_disconnected(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile) {
void ChargePoint::websocket_disconnected_callback(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile) {
this->message_queue->pause();

// check if offline threshold has been defined
Expand All @@ -3786,7 +3786,7 @@ void ChargePoint::on_websocket_disconnected(const int configuration_slot,
}
}

void ChargePoint::on_websocket_connection_failed(ConnectionFailedReason reason) {
void ChargePoint::websocket_connection_failed(ConnectionFailedReason reason) {
switch (reason) {
case ConnectionFailedReason::InvalidCSMSCertificate:
if (!this->skip_invalid_csms_certificate_notifications) {
Expand Down

0 comments on commit f2eb0a4

Please sign in to comment.