Skip to content

Commit

Permalink
format; correct logging
Browse files Browse the repository at this point in the history
Signed-off-by: Fabian Klemm <[email protected]>
  • Loading branch information
klemmpnx committed Oct 23, 2023
1 parent a50f7e0 commit de2749a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion include/ocpp/v201/charge_point.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ struct Callbacks {
std::optional<std::function<bool(const NetworkConnectionProfile& network_connection_profile)>>
configure_network_connection_profile_callback;
std::optional<std::function<void(const ocpp::DateTime& currentTime)>> time_sync_callback;

};

/// \brief Class implements OCPP2.0.1 Charging Station
Expand Down
11 changes: 6 additions & 5 deletions lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,13 @@ void ChargePoint::on_session_started(const int32_t evse_id, const int32_t connec
this->evses.at(evse_id)->submit_event(connector_id, ConnectorEvent::PlugIn);
}

Get15118EVCertificateResponse ChargePoint::on_get_15118_ev_certificate_request(const Get15118EVCertificateRequest& request) {
EVLOG_info << "Received Get15118EVCertificateRequest " << request;
auto future_res = this->send_async<Get15118EVCertificateRequest>(ocpp::Call<Get15118EVCertificateRequest>(request, this->message_queue->createMessageId()));
Get15118EVCertificateResponse
ChargePoint::on_get_15118_ev_certificate_request(const Get15118EVCertificateRequest& request) {
EVLOG_debug << "Received Get15118EVCertificateRequest " << request;
auto future_res = this->send_async<Get15118EVCertificateRequest>(
ocpp::Call<Get15118EVCertificateRequest>(request, this->message_queue->createMessageId()));
const auto response_message = future_res.get();
EVLOG_info << "Received Get15118EVCertificateResponse " << response_message.message;
EVLOG_debug << "Received Get15118EVCertificateResponse " << response_message.message;
if (response_message.messageType != MessageType::Get15118EVCertificateResponse) {
Get15118EVCertificateResponse response;
response.status = Iso15118EVCertificateStatusEnum::Failed;
Expand All @@ -176,7 +178,6 @@ Get15118EVCertificateResponse ChargePoint::on_get_15118_ev_certificate_request(c

ocpp::CallResult<Get15118EVCertificateResponse> call_result = response_message.message;
return call_result.msg;

}

void ChargePoint::on_transaction_started(
Expand Down

0 comments on commit de2749a

Please sign in to comment.