AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
painlessmesh::protocol::Single Class Reference

#include <protocol.hpp>

Inheritance diagram for painlessmesh::protocol::Single:
Inheritance graph
[legend]
Collaboration diagram for painlessmesh::protocol::Single:
Collaboration graph
[legend]

Public Member Functions

 Single ()
 
 Single (uint32_t fromID, uint32_t destID, TSTRING &message)
 
 Single (JsonObject jsonObj)
 
JsonObject addTo (JsonObject &&jsonObj) const
 
size_t jsonObjectSize () const
 
- Public Member Functions inherited from painlessmesh::protocol::PackageInterface
virtual ~PackageInterface ()=default
 

Public Attributes

int type = SINGLE
 
uint32_t from = 0
 
uint32_t dest = 0
 
TSTRING msg = ""
 
uint32_t msgId = 0
 
uint8_t priority = PRIORITY_NORMAL
 

Detailed Description

Single package

Message send to a specific node

Constructor & Destructor Documentation

◆ Single() [1/3]

painlessmesh::protocol::Single::Single ( )
inline

◆ Single() [2/3]

painlessmesh::protocol::Single::Single ( uint32_t  fromID,
uint32_t  destID,
TSTRING &  message 
)
inline

◆ Single() [3/3]

painlessmesh::protocol::Single::Single ( JsonObject  jsonObj)
inline

Member Function Documentation

◆ addTo()

JsonObject painlessmesh::protocol::Single::addTo ( JsonObject &&  jsonObj) const
inlinevirtual

◆ jsonObjectSize()

size_t painlessmesh::protocol::Single::jsonObjectSize ( ) const
inlinevirtual

Member Data Documentation

◆ dest

uint32_t painlessmesh::protocol::Single::dest = 0

◆ from

uint32_t painlessmesh::protocol::Single::from = 0

◆ msg

TSTRING painlessmesh::protocol::Single::msg = ""

◆ msgId

uint32_t painlessmesh::protocol::Single::msgId = 0

◆ priority

uint8_t painlessmesh::protocol::Single::priority = PRIORITY_NORMAL

◆ type

int painlessmesh::protocol::Single::type = SINGLE

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