ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
utils.hpp
1// SPDX-License-Identifier: Apache-2.0
2// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest
3#ifndef V16_UTILS_HPP
4#define V16_UTILS_HPP
5
6#include <ocpp/common/call_types.hpp>
7#include <ocpp/v16/messages/StopTransaction.hpp>
8#include <ocpp/v16/ocpp_types.hpp>
9#include <ocpp/v16/types.hpp>
10
11namespace ocpp {
12namespace v16 {
13namespace utils {
14
15size_t get_message_size(const ocpp::Call<StopTransactionRequest>& call);
16
19void drop_transaction_data(size_t max_message_size, ocpp::Call<StopTransactionRequest>& call);
20
22bool is_critical(const std::string& security_event);
23
24} // namespace utils
25} // namespace v16
26} // namespace ocpp
27
28#endif
Contains a OCPP Call message.
Definition: call_types.hpp:60