A time interface class. This class replicates the normal time functions, but goes a couple of steps further. mbed library 82 and prior has a defective gmtime function. Also, this class enables access to setting the time, and adjusting the accuracy of the RTC.

Dependencies:   CalendarPage

Dependents:   CI-data-logger-server WattEye X10Svr SSDP_Server

Files at this revision

API Documentation at this revision

Comitter:
WiredHome
Date:
Sun Jun 10 22:43:56 2018 +0000
Parent:
22:72ce9bd14c5e
Child:
24:45a9e7081499
Commit message:
Added minor diagnostic - for debug only

Changed in this revision

TimeInterface.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/TimeInterface.cpp	Sun Apr 29 18:16:48 2018 +0000
+++ b/TimeInterface.cpp	Sun Jun 10 22:43:56 2018 +0000
@@ -60,6 +60,7 @@
             set_time(std::time(NULL));
         }
     } else {
+        ERR("No connection");
         res = NTP_CONN;
     }
     return res;