TinyCTS
Bluetooth Current Time Service client and server for Arduino
Loading...
Searching...
No Matches
TinyCTSTimeSource.h File Reference

Time sources of the TinyCTSServer: the interface, a software clock, the system clock and an adapter for any object with getTimeMs() (e.g. the TinyNTPClient of the TinyNTP library). More...

Go to the source code of this file.

Classes

class  tiny_cts::TinyCTSClockSource
 A software clock: you set the UTC time (from an RTC, a GPS, ...) and it keeps counting with millis(). The time is 0 (not known) until it is set. Read or set it at least once every 49 days (overflow of millis()). More...
class  tiny_cts::TinyCTSSourceAdapter< T >
 Uses any object with a getTimeMs() method as time source, e.g. the TinyNTPClient of the TinyNTP library: More...
class  tiny_cts::TinyCTSSystemSource
 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...
class  tiny_cts::TinyCTSTimeSource
 Abstract base class of the time sources: an object that knows the current UTC time. More...

Detailed Description

Time sources of the TinyCTSServer: the interface, a software clock, the system clock and an adapter for any object with getTimeMs() (e.g. the TinyNTPClient of the TinyNTP library).