SPSP
Simple publish-subscribe protocol. Connects low power IoT clients to MQTT.
All Classes Files Functions Variables Typedefs Enumerations
Public Types | Public Member Functions | Public Attributes | List of all members
SPSP::LocalMessage< TLocalAddr > Struct Template Reference

Local message representation. More...

#include <local_message.hpp>

Public Types

using LocalAddrT = TLocalAddr
 

Public Member Functions

std::string toString () const
 Converts LocalMessage to printable string. More...
 
bool operator== (const LocalMessage &other) const
 

Public Attributes

LocalMessageType type
 Type of message.
 
TLocalAddr addr = {}
 Source/destination address.
 
std::string topic = ""
 Topic of message.
 
std::string payload = ""
 Payload of message.
 

Detailed Description

template<typename TLocalAddr>
struct SPSP::LocalMessage< TLocalAddr >

Local message representation.

Used primarily for communication between LocalLayer and Node classes.

Template Parameters
TLocalAddrType of local address

Definition at line 70 of file local_message.hpp.

Member Function Documentation

◆ toString()

template<typename TLocalAddr >
std::string SPSP::LocalMessage< TLocalAddr >::toString ( ) const
inline

Converts LocalMessage to printable string.

Primarily for logging purposes

Returns
String representation of contained data

Definition at line 86 of file local_message.hpp.


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