Lightweight WIZnet W5500 NTPClient library. Includes DST and set RTC options.
Dependents: W5500-SNTPClient-example
Revision 2:7e5afd34bc43, committed 2019-05-02
- Comitter:
- star297
- Date:
- Thu May 02 21:08:19 2019 +0000
- Parent:
- 1:a4f83daca033
- Commit message:
- Edit example code
Changed in this revision
| SNTPClient.h | Show annotated file Show diff for this revision Revisions of this file |
--- a/SNTPClient.h Thu May 02 21:06:49 2019 +0000
+++ b/SNTPClient.h Thu May 02 21:08:19 2019 +0000
@@ -23,7 +23,7 @@
* printf("IP Address is %s\n\r", eth.getIPAddress());
* // example NTPpool = "1.nl.pool.ntp.org"
* // get seconds UTC + 1hour, enable DST and set MCU RTC
- * serial.printf("Seconds since 1970 = %d\r\n", esp.getNTP("1.nl.pool.ntp.org",1,1,1));
+ * serial.printf("Seconds since 1970 = %d\r\n", sntp.getNTP("1.nl.pool.ntp.org",1,1,1));
*
* }
* @endcode