3#ifndef OCPP_V2_TRANSACTION_HANDLER_HPP
4#define OCPP_V2_TRANSACTION_HANDLER_HPP
6#include <ocpp/common/aligned_timer.hpp>
7#include <ocpp/v2/ocpp_types.hpp>
18 database_handler{database_handler}, database_enabled{database_enabled} {
21 bool id_token_sent =
false;
22 int32_t connector_id = 0;
24 std::optional<float> active_energy_import_start_value;
26 bool check_max_active_import_energy =
false;
44 void set_id_token_sent();
48 bool database_enabled;
Definition: aligned_timer.hpp:12
Contains a DateTime implementation that can parse and create RFC 3339 compatible strings.
Definition: types.hpp:109
Definition: database_handler.hpp:204
Struct that enhances the OCPP Transaction by some meta data and functionality.
Definition: transaction.hpp:16
int32_t get_seq_no()
Get the current sequence number of the transaction message.
Definition: transaction.cpp:19
void update_charging_state(const ChargingStateEnum charging_state)
Update the charging state of the transaction.
Definition: transaction.cpp:31
Definition: ocpp_types.hpp:933