|
TinyCTS
Bluetooth Current Time Service client and server for Arduino
|
The UTC time of the system clock (gettimeofday()). Not available on the boards without gettimeofday() (AVR, Uno R4). Times before minValidSeconds (default 2023-11-14) are treated as "clock not set". More...
#include <TinyCTSTimeSource.h>
Public Member Functions | |
| TinyCTSSystemSource (uint32_t minValidSeconds=1700000000UL) | |
| uint64_t | getTimeMs () override |
| The current UTC time in milliseconds since 1970-01-01. It must not block. | |
| bool | setTimeMs (uint64_t unixMs) override |
Protected Attributes | |
| uint32_t | _minValid |
The UTC time of the system clock (gettimeofday()). Not available on the boards without gettimeofday() (AVR, Uno R4). Times before minValidSeconds (default 2023-11-14) are treated as "clock not set".
|
inlineoverridevirtual |
The current UTC time in milliseconds since 1970-01-01. It must not block.
Implements tiny_cts::TinyCTSTimeSource.
|
inlineoverridevirtual |
Sets the system clock: needs the rights (root) on the desktop. Not on Windows.
Reimplemented from tiny_cts::TinyCTSTimeSource.