|
AlteriomPainlessMesh v2.1.1
Easy ESP32/ESP8266 mesh networking with Alteriom IoT extensions
|
#include <rtc.hpp>
Public Member Functions | |
| virtual | ~RTCInterface () |
| virtual bool | begin ()=0 |
| virtual bool | isAvailable ()=0 |
| virtual uint32_t | getUnixTime ()=0 |
| virtual bool | setUnixTime (uint32_t timestamp)=0 |
| virtual RTCType | getType ()=0 |
Abstract RTC interface for painlessMesh
Users should implement this interface for their specific RTC hardware and pass an instance to mesh.enableRTC()
|
inlinevirtual |
|
pure virtual |
Initialize the RTC hardware
|
pure virtual |
Get RTC type identifier
|
pure virtual |
Get current Unix timestamp from RTC
|
pure virtual |
Check if RTC is available and responding
|
pure virtual |
Set RTC time from Unix timestamp
| timestamp | Unix timestamp to set |