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

Local layer address container. More...

#include <local_addr.hpp>

Inheritance diagram for SPSP::LocalAddr:
Inheritance graph
[legend]

Public Member Functions

bool operator== (const LocalAddr &other) const
 
bool operator!= (const LocalAddr &other) const
 
bool empty () const
 Checks whether the address is empty. More...
 

Public Attributes

std::vector< uint8_t > addr
 Internal address representation.
 
std::string str
 Printable string (also used in MQTT topic)
 

Detailed Description

Local layer address container.

Internal representation is decisive. Two addresses are the same if they have the same internal representation.

Printable string is also passed to far layer (MQTT).

Definition at line 25 of file local_addr.hpp.

Member Function Documentation

◆ empty()

bool SPSP::LocalAddr::empty ( ) const
inline

Checks whether the address is empty.

Returns
true Local address is empty
false Local address is not empty

Definition at line 46 of file local_addr.hpp.


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