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 d81947f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 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,
void websocket_connected_callback(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile);
void on_websocket_disconnected(const int configuration_slot,
void websocket_disconnected_callback(const int configuration_slot,
const NetworkConnectionProfile& network_connection_profile);
void on_websocket_connection_failed(ConnectionFailedReason reason);
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
12 changes: 6 additions & 6 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,7 +3726,7 @@ void ChargePoint::scheduled_check_v2g_certificate_expiration() {
.value_or(12 * 60 * 60)));
}

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

Expand Down Expand Up @@ -3768,7 +3768,7 @@ void ChargePoint::on_websocket_connected(const int configuration_slot,
}
}

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

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 d81947f

Please sign in to comment.