|
TinyCTS
Bluetooth Current Time Service client and server for Arduino
|
Uses any object with a getTimeMs() method as time source, e.g. the TinyNTPClient of the TinyNTP library: More...
#include <TinyCTSTimeSource.h>
Public Member Functions | |
| TinyCTSSourceAdapter (T &source) | |
| uint64_t | getTimeMs () override |
| The current UTC time in milliseconds since 1970-01-01. It must not block. | |
| Public Member Functions inherited from tiny_cts::TinyCTSTimeSource | |
| virtual bool | setTimeMs (uint64_t unixMs) |
| Set the current UTC time, e.g. when a client writes the Current Time characteristic. The default implementation does not support this. | |
Protected Attributes | |
| T & | _source |
Uses any object with a getTimeMs() method as time source, e.g. the TinyNTPClient of the TinyNTP library:
|
inlineoverridevirtual |
The current UTC time in milliseconds since 1970-01-01. It must not block.
Implements tiny_cts::TinyCTSTimeSource.