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::ack::MessageAckPackage Class Reference

#include <ack.hpp>

Inheritance diagram for painlessmesh::ack::MessageAckPackage:
Inheritance graph
[legend]
Collaboration diagram for painlessmesh::ack::MessageAckPackage:
Collaboration graph
[legend]

Public Member Functions

 MessageAckPackage ()
 
 MessageAckPackage (uint32_t fromNode, uint32_t destNode, uint32_t msgId)
 
 MessageAckPackage (JsonObject jsonObj)
 
JsonObject addTo (JsonObject &&jsonObj) const
 
size_t jsonObjectSize () const
 
- Public Member Functions inherited from painlessmesh::plugin::SinglePackage
 SinglePackage (int type)
 
 SinglePackage (JsonObject jsonObj)
 
JsonObject addTo (JsonObject &&jsonObj) const
 
- Public Member Functions inherited from painlessmesh::protocol::PackageInterface
virtual ~PackageInterface ()=default
 

Public Attributes

uint32_t messageId = 0
 
- Public Attributes inherited from painlessmesh::plugin::SinglePackage
uint32_t from = 0
 
uint32_t dest = 0
 
router::Type routing = router::SINGLE
 
int type = 0
 
int noJsonFields = 4
 

Detailed Description

Acknowledgment package sent back to the original sender

Routed as a SINGLE package so it traverses multiple hops using the normal routing logic.

Type ID: 630 (MESSAGE_ACK)

Constructor & Destructor Documentation

◆ MessageAckPackage() [1/3]

painlessmesh::ack::MessageAckPackage::MessageAckPackage ( )
inline

◆ MessageAckPackage() [2/3]

painlessmesh::ack::MessageAckPackage::MessageAckPackage ( uint32_t  fromNode,
uint32_t  destNode,
uint32_t  msgId 
)
inline

◆ MessageAckPackage() [3/3]

painlessmesh::ack::MessageAckPackage::MessageAckPackage ( JsonObject  jsonObj)
inline

Member Function Documentation

◆ addTo()

JsonObject painlessmesh::ack::MessageAckPackage::addTo ( JsonObject &&  jsonObj) const
inlinevirtual

◆ jsonObjectSize()

size_t painlessmesh::ack::MessageAckPackage::jsonObjectSize ( ) const
inlinevirtual

Member Data Documentation

◆ messageId

uint32_t painlessmesh::ack::MessageAckPackage::messageId = 0

ID of the message being acknowledged


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