|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
Structure to hold Internet connectivity check results. More...
#include <gateway.hpp>
Public Member Functions | |
| uint8_t | getUptimePercent () const |
| Get the uptime percentage of Internet connectivity. | |
| uint32_t | getTimeSinceLastSuccess () const |
| Get time since last successful Internet check. | |
| bool | isStale (uint32_t maxAgeMs=60000) const |
| Check if Internet status is stale (no recent check) | |
Public Attributes | |
| bool | available = false |
| Whether Internet is currently available. | |
| uint32_t | lastCheckTime = 0 |
| Timestamp of last check (millis) | |
| uint32_t | lastSuccessTime = 0 |
| Timestamp of last successful check (millis) | |
| uint32_t | checkCount = 0 |
| Total number of checks performed. | |
| uint32_t | successCount = 0 |
| Number of successful checks. | |
| uint32_t | failureCount = 0 |
| Number of failed checks. | |
| uint32_t | lastLatencyMs = 0 |
| Latency of last successful check in ms. | |
| TSTRING | lastError = "" |
| Error message from last failed check. | |
| TSTRING | checkHost = "" |
| Host used for connectivity check. | |
| uint16_t | checkPort = 0 |
| Port used for connectivity check. | |
Structure to hold Internet connectivity check results.
Contains detailed information about the last Internet connectivity check, including whether it succeeded, timing information, and error details.
|
inline |
Get time since last successful Internet check.
|
inline |
Get the uptime percentage of Internet connectivity.
|
inline |
Check if Internet status is stale (no recent check)
| maxAgeMs | Maximum age in milliseconds (default: 60000) |
| bool painlessmesh::gateway::InternetStatus::available = false |
Whether Internet is currently available.
| uint32_t painlessmesh::gateway::InternetStatus::checkCount = 0 |
Total number of checks performed.
| TSTRING painlessmesh::gateway::InternetStatus::checkHost = "" |
Host used for connectivity check.
| uint16_t painlessmesh::gateway::InternetStatus::checkPort = 0 |
Port used for connectivity check.
| uint32_t painlessmesh::gateway::InternetStatus::failureCount = 0 |
Number of failed checks.
| uint32_t painlessmesh::gateway::InternetStatus::lastCheckTime = 0 |
Timestamp of last check (millis)
| TSTRING painlessmesh::gateway::InternetStatus::lastError = "" |
Error message from last failed check.
| uint32_t painlessmesh::gateway::InternetStatus::lastLatencyMs = 0 |
Latency of last successful check in ms.
| uint32_t painlessmesh::gateway::InternetStatus::lastSuccessTime = 0 |
Timestamp of last successful check (millis)
| uint32_t painlessmesh::gateway::InternetStatus::successCount = 0 |
Number of successful checks.