|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <mesh.hpp>
Public Attributes | |
| uint8_t | priority = protocol::PRIORITY_NORMAL |
| ack::deliveryCallback_t | ackCallback = nullptr |
| uint32_t | ackTimeoutMs = 5000 |
Options for sendSingle() / sendBroadcast() (issue #384)
Bundles the outbound queue priority and the optional delivery confirmation into one composable struct, so a message can be both prioritized and acknowledgment-tracked in a single call — something the separate priority and ack overloads cannot express:
The priority is carried on the wire (serialized as "prio" only when it deviates from PRIORITY_NORMAL), so intermediate nodes re-enqueue a forwarded package at the sender's priority instead of dropping it to NORMAL after the first hop.
| ack::deliveryCallback_t painlessmesh::SendOptions::ackCallback = nullptr |
Optional delivery confirmation callback; fires once per expected node with delivered = true and the round-trip latency, or delivered = false on timeout. nullptr (default) disables tracking.
| uint32_t painlessmesh::SendOptions::ackTimeoutMs = 5000 |
How long to wait for acknowledgments before reporting failure.
| uint8_t painlessmesh::SendOptions::priority = protocol::PRIORITY_NORMAL |
Outbound queue priority: PRIORITY_CRITICAL (0), PRIORITY_HIGH (1), PRIORITY_NORMAL (2, default) or PRIORITY_LOW (3).