|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <mesh.hpp>
Public Member Functions | |
| bool | isTimedOut () const |
Public Attributes | |
| uint32_t | messageId = 0 |
| Unique message ID. | |
| uint32_t | timestamp = 0 |
| When request was sent (millis) | |
| uint8_t | retryCount = 0 |
| Number of retries attempted. | |
| uint8_t | maxRetries = 3 |
| Maximum retry attempts. | |
| uint8_t | priority = 2 |
| Priority level (0=CRITICAL to 3=LOW) | |
| uint32_t | timeoutMs = 30000 |
| Timeout in milliseconds. | |
| uint32_t | retryDelayMs = 1000 |
| Current retry delay (for exponential backoff) | |
| uint32_t | gatewayNodeId = 0 |
| Target gateway node ID. | |
| TSTRING | destination = "" |
| Internet destination URL. | |
| TSTRING | payload = "" |
| Request payload. | |
| internetResultCallback_t | callback |
| User callback for result. | |
| internetResponseCallback_t | onResult |
| uint8_t | attempts = 0 |
| uint32_t | requestNonce = 0 |
| Drawn once for the call, sent on every attempt (GatewayDataPackage). | |
| TSTRING | lastError = "" |
Pending Internet request entry
Tracks a pending sendToInternet() request for acknowledgment handling
|
inline |
Check if this request has timed out
| uint8_t painlessmesh::PendingInternetRequest::attempts = 0 |
Times the request was handed to a gateway: 0 until the first send leaves this node, whatever retries were scheduled meanwhile.
| internetResultCallback_t painlessmesh::PendingInternetRequest::callback |
User callback for result.
| TSTRING painlessmesh::PendingInternetRequest::destination = "" |
Internet destination URL.
| uint32_t painlessmesh::PendingInternetRequest::gatewayNodeId = 0 |
Target gateway node ID.
| TSTRING painlessmesh::PendingInternetRequest::lastError = "" |
Why the last attempt failed, when retries were spent waiting for a gateway; the final callback reports it instead of a bare retry count.
| uint8_t painlessmesh::PendingInternetRequest::maxRetries = 3 |
Maximum retry attempts.
| uint32_t painlessmesh::PendingInternetRequest::messageId = 0 |
Unique message ID.
| internetResponseCallback_t painlessmesh::PendingInternetRequest::onResult |
Or the whole-result callback
| TSTRING painlessmesh::PendingInternetRequest::payload = "" |
Request payload.
| uint8_t painlessmesh::PendingInternetRequest::priority = 2 |
Priority level (0=CRITICAL to 3=LOW)
| uint32_t painlessmesh::PendingInternetRequest::requestNonce = 0 |
Drawn once for the call, sent on every attempt (GatewayDataPackage).
| uint8_t painlessmesh::PendingInternetRequest::retryCount = 0 |
Number of retries attempted.
| uint32_t painlessmesh::PendingInternetRequest::retryDelayMs = 1000 |
Current retry delay (for exponential backoff)
| uint32_t painlessmesh::PendingInternetRequest::timeoutMs = 30000 |
Timeout in milliseconds.
| uint32_t painlessmesh::PendingInternetRequest::timestamp = 0 |
When request was sent (millis)