6#include <ocpp/v2/message_handler.hpp>
8#include <ocpp/common/aligned_timer.hpp>
9#include <ocpp/v2/average_meter_values.hpp>
12struct FunctionalBlockContext;
17 virtual void update_aligned_data_interval() = 0;
22 virtual MeterValue get_latest_meter_value_filtered(
const MeterValue& meter_value, ReadingContextEnum context,
25 virtual void meter_values_req(
const int32_t evse_id,
const std::vector<MeterValue>& meter_values,
26 const bool initiated_by_trigger_message =
false) = 0;
34 void update_aligned_data_interval()
override;
36 MeterValue get_latest_meter_value_filtered(
const MeterValue& meter_value, ReadingContextEnum context,
39 void meter_values_req(
const int32_t evse_id,
const std::vector<MeterValue>& meter_values,
40 const bool initiated_by_trigger_message =
false)
override;
50 void update_dm_evse_power(
const int32_t evse_id,
const MeterValue& meter_value);
Definition: aligned_timer.hpp:12
Definition: average_meter_values.hpp:16
Interface for handling OCPP2.0.1 CALL messages from the CSMS. Classes implementing a functional block...
Definition: message_handler.hpp:13
Definition: meter_values.hpp:14
virtual void on_meter_value(const int32_t evse_id, const MeterValue &meter_value)=0
Event handler that should be called when a new meter value is present.
Definition: meter_values.hpp:29
void on_meter_value(const int32_t evse_id, const MeterValue &meter_value) override
Event handler that should be called when a new meter value is present.
Definition: meter_values.cpp:90
void handle_message(const ocpp::EnhancedMessage< MessageType > &message) override
Handles the given message from the CSMS. This includes dispatching a CALLRESULT as a response to the ...
Definition: meter_values.cpp:18
Contains a OCPP message in json form with additional information.
Definition: message_queue.hpp:54
Context / requirements for the functional blocks.
Definition: functional_block_context.hpp:23
Definition: ocpp_types.hpp:436
Definition: ocpp_types.hpp:969