Simple Network Time Protocol Client. This lib feature: Access to SNTP server, and get Epoch (Unix) time.
Diff: SimpleNTP.cpp
- Revision:
- 1:b5a2e4532331
- Parent:
- 0:2be905de8e28
--- a/SimpleNTP.cpp Wed Nov 25 10:03:10 2015 +0000 +++ b/SimpleNTP.cpp Fri Nov 27 02:10:36 2015 +0000 @@ -47,5 +47,12 @@ return timeNTP- 2208988800;//timeEpoch; } +SimpleNTP::Result SimpleNTP::close() +{ + if(socket.close() == -1) + return ERR_SocketClose; + + return SUCCESS; +} // EOF \ No newline at end of file