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.
Dependents: CI-data-logger-server WattEye X10Svr SSDP_Server
Diff: TimeInterface.cpp
- Revision:
- 23:a89b319b552c
- Parent:
- 21:f3818e2e0370
- Child:
- 25:39b65d1fd1e6
- Child:
- 26:9ee3fac64626
--- 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;