|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <protocol.hpp>
Public Member Functions | |
| Variant (const Variant &other) | |
| Variant & | operator= (const Variant &other) |
| Variant (Variant &&other) noexcept | |
| Variant & | operator= (Variant &&other) noexcept |
| Variant (const PackageInterface *pkg) | |
| Variant (Single single) | |
| Variant (Broadcast broadcast) | |
| Variant (NodeTree nodeTree) | |
| Variant (NodeSyncReply nodeSyncReply) | |
| Variant (NodeSyncRequest nodeSyncRequest) | |
| Variant (TimeSync timeSync) | |
| Variant (TimeDelay timeDelay) | |
| template<typename T > | |
| bool | is () |
| template<typename T > | |
| T | to () |
| int | type () |
| uint32_t | from () |
| uint32_t | msgId () |
| uint8_t | priority () |
| router::Type | routing () |
| uint32_t | dest () |
| template<> | |
| bool | is () |
| template<> | |
| bool | is () |
| template<> | |
| bool | is () |
| template<> | |
| bool | is () |
| template<> | |
| bool | is () |
| template<> | |
| bool | is () |
| template<> | |
| JsonObject | to () |
Public Attributes | |
| DeserializationError | error = DeserializationError::Ok |
Can store any package variant
Internally stores packages as a JsonObject. Main use case is to convert different packages from and to Json (using ArduinoJson).
|
inlinenoexcept |
|
inline |
Create Variant object from any package implementing PackageInterface
|
inline |
|
inline |
|
inline |
|
inline |
Create Variant object from a NodeSyncReply package
| nodeSyncReply | The nodeSyncReply package |
|
inline |
Create Variant object from a NodeSyncRequest package
| nodeSyncRequest | The nodeSyncRequest package |
|
inline |
|
inline |
|
inline |
Destination node of the package
|
inline |
Origin node of the package (0 if not present)
Lightweight field peek — unlike to<T>() this does not materialize a package object or copy the message payload.
|
inline |
Whether this package is of the given type
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Delivery-confirmation id of the package (0 = no ack requested)
Lightweight field peek — unlike to<T>() this does not materialize a package object or copy the message payload.
|
inline |
|
inlinenoexcept |
|
inline |
Outbound queue priority of the package (PRIORITY_NORMAL if not present)
Lightweight field peek — unlike to<T>() this does not materialize a package object or copy the message payload. Used by forwarding hops to re-enqueue a routed package at the sender's priority (issue #384).
|
inline |
Package routing method
|
inline |
Convert Variant to the given type
|
inline |
|
inline |
Return package type
| DeserializationError painlessmesh::protocol::Variant::error = DeserializationError::Ok |