|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <rtc.hpp>
Public Member Functions | |
| RTCManager () | |
| bool | enable (RTCInterface *interface) |
| void | disable () |
| bool | isEnabled () const |
| uint32_t | getTime () |
| bool | syncFromNTP (uint32_t ntpTimestamp) |
| uint32_t | getTimeSinceLastSync () const |
| RTCType | getType () const |
RTC manager class for mesh integration
Handles RTC time synchronization and fallback to mesh time
|
inline |
|
inline |
Disable RTC
|
inline |
Enable RTC with a user-provided interface
| interface | Pointer to RTCInterface implementation |
|
inline |
Get current time from RTC
|
inline |
Get time since last RTC sync
|
inline |
Get RTC type
|
inline |
Check if RTC is enabled and available
|
inline |
Sync RTC time from NTP/Internet source
| ntpTimestamp | Unix timestamp from NTP source |