Skip to content

Commit

Permalink
Style fix and add triggers still needing implementation
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Emmers <m.emmers@alfen.com>
  • Loading branch information
marcemmers committed Aug 17, 2023
1 parent 544916d commit c340bba
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions lib/ocpp/v201/charge_point.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -560,8 +560,8 @@ void ChargePoint::message_callback(const std::string& message) {

MeterValue ChargePoint::get_latest_meter_value_filtered(const MeterValue& meter_value, ReadingContextEnum context,
const ComponentVariable& component_variable) {
auto filtered_meter_value =
utils::get_meter_value_with_measurands_applied(meter_value, utils::get_measurands_vec(this->device_model->get_value<std::string>(component_variable)));
auto filtered_meter_value = utils::get_meter_value_with_measurands_applied(
meter_value, utils::get_measurands_vec(this->device_model->get_value<std::string>(component_variable)));
for (auto& sampled_value : filtered_meter_value.sampledValue) {
sampled_value.context = context;
}
Expand Down Expand Up @@ -1327,6 +1327,14 @@ void ChargePoint::handle_trigger_message(Call<TriggerMessageRequest> call) {
}
break;

// TODO:
// LogStatusNotification
// FirmwareStatusNotification
// PublishFirmwareStatusNotification
// SignChargingStationCertificate
// SignV2GCertificate
// SignCombinedCertificate

default:
response.status = TriggerMessageStatusEnum::NotImplemented;
break;
Expand Down

0 comments on commit c340bba

Please sign in to comment.