ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | List of all members
ocpp::v2::NotifyReportRequestsSplitter Class Reference

Utility class that is used to split NotifyReportRequest into several ones in case ReportData is too big. More...

#include <notify_report_requests_splitter.hpp>

Public Member Functions

 NotifyReportRequestsSplitter (const NotifyReportRequest &originalRequest, size_t max_size, std::function< MessageId()> &&message_id_generator_callback)
 
std::vector< json > create_call_payloads ()
 Splits the provided NotifyReportRequest into (potentially) several Call payloads. More...
 

Detailed Description

Utility class that is used to split NotifyReportRequest into several ones in case ReportData is too big.

Member Function Documentation

◆ create_call_payloads()

std::vector< json > ocpp::v2::NotifyReportRequestsSplitter::create_call_payloads ( )

Splits the provided NotifyReportRequest into (potentially) several Call payloads.

Returns
the json messages that serialize the resulting Call<NotifyReportRequest> objects

The documentation for this class was generated from the following files: