ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Member Functions | Public Attributes | List of all members
ocpp::ControlMessage< M > Struct Template Reference

This contains an internal control message. More...

#include <message_queue.hpp>

Public Member Functions

 ControlMessage (const json &message, const bool stall_until_accepted=false)
 Creates a new ControlMessage object from the provided message.
 
MessageId uniqueId () const
 Provides the unique message ID stored in the message. More...
 
bool is_transaction_update_message () const
 True for transactional messages containing updates (measurements) for a transaction.
 
 ControlMessage (const json &message, const bool stall_until_accepted)
 
bool is_transaction_update_message () const
 
bool is_transaction_update_message () const
 
 ControlMessage (const json &message, const bool stall_until_accepted)
 

Public Attributes

json::array_t message
 The OCPP message as a json array.
 
messageType
 The OCPP message type.
 
int32_t message_attempts
 The number of times this message has been rejected by the central system.
 
std::promise< EnhancedMessage< M > > promise
 A promise used by the async send interface.
 
DateTime timestamp
 A timestamp that shows when this message can be sent.
 
MessageId initial_unique_id
 
bool stall_until_accepted
 

Detailed Description

template<typename M>
struct ocpp::ControlMessage< M >

This contains an internal control message.

Member Function Documentation

◆ uniqueId()

template<typename M >
MessageId ocpp::ControlMessage< M >::uniqueId ( ) const
inline

Provides the unique message ID stored in the message.

Returns
the unique ID of the contained message

The documentation for this struct was generated from the following file: