LOGGER  Logger
Data Logging using ESP8266
timeservices.h
Go to the documentation of this file.
1 //
5 // Copyright (c) 2015-2016 by Dragonnorth Group, all rights reserved.
6 //
7 // Author: Michael Newman
8 #ifndef timeservicesHedit
9 #define timeservicesHedit 2
10 // 14Feb16 MJNewman 2: Add time reporting trigger
11 // 13Dec15 MJNewman 1: Created
12 //
13 // An unrestricted license to this software is granted to:
14 // None granted yet
15 // and may be granted to others.
16 
17 #include <arduino.h>
18 #include "basetype.h"
19 
23 
25 extern void timeservicesInit();
26 
29 extern void timeservicesLoop();
30 
33 extern bool timeservicesReportRequired;
34 
39 extern time_t timeServicesGetNTPtime();
40 
47 extern String timeservicesDumpTime(time_t t);
48 
53 extern void dumpAmountOfTime(Print *pPrint,time_t seconds);
54 
59 EXTERNDEF void dumpAmountOfTimeMS(Print *pPrint,uint32_t milliAmount);
60 
66 extern bool timeservicesTimeIsValid();
67 
69 extern void timeservicesConfigurationPage();
70 
71 
72 #endif // defined(timeservicesHedit)
EXTERNDEF void dumpAmountOfTimeMS(Print *pPrint, uint32_t milliAmount)
Definition: timeservices.cpp:125
bool timeservicesTimeWasManuallySet
Set to true if time was set by a console command.
Definition: timeservices.cpp:38
bool timeservicesTimeIsValid()
Definition: timeservices.cpp:312
void timeservicesConfigurationPage()
display the time configuration page
Definition: timeservices.cpp:329
time_t timeServicesGetNTPtime()
Definition: timeservices.cpp:203
void timeservicesInit()
Initialize time services, call once at system startup.
Definition: timeservices.cpp:179
void timeservicesLoop()
Definition: timeservices.cpp:58
void dumpAmountOfTime(Print *pPrint, time_t seconds)
Definition: timeservices.cpp:99
bool timeservicesReportRequired
Definition: timeservices.cpp:56
String timeservicesDumpTime(time_t t)
Definition: timeservices.cpp:82