|
TinyCTS
Bluetooth Current Time Service client and server for Arduino
|
Abstract base class of the time sources: an object that knows the current UTC time. More...
#include <TinyCTSTimeSource.h>
Public Member Functions | |
| virtual uint64_t | getTimeMs ()=0 |
| The current UTC time in milliseconds since 1970-01-01. It must not block. | |
| 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. | |
Abstract base class of the time sources: an object that knows the current UTC time.
|
pure virtual |
The current UTC time in milliseconds since 1970-01-01. It must not block.
Implemented in tiny_cts::TinyCTSClientBase, tiny_cts::TinyCTSClockSource, tiny_cts::TinyCTSSourceAdapter< T >, and tiny_cts::TinyCTSSystemSource.
|
inlinevirtual |
Set the current UTC time, e.g. when a client writes the Current Time characteristic. The default implementation does not support this.
Reimplemented in tiny_cts::TinyCTSClient, tiny_cts::TinyCTSClient, tiny_cts::TinyCTSClient, tiny_cts::TinyCTSClient, tiny_cts::TinyCTSClockSource, and tiny_cts::TinyCTSSystemSource.