Lightweight WIZnet W5500 NTPClient library. Includes DST and set RTC options.
Dependents: W5500-SNTPClient-example
Diff: SNTPClient.h
- Revision:
- 1:a4f83daca033
- Parent:
- 0:f8cb34a007a4
- Child:
- 2:7e5afd34bc43
diff -r f8cb34a007a4 -r a4f83daca033 SNTPClient.h --- a/SNTPClient.h Thu May 02 20:46:54 2019 +0000 +++ b/SNTPClient.h Thu May 02 21:06:49 2019 +0000 @@ -13,10 +13,11 @@ * #include "EthernetInterface.h" * #include "SNTPClient.h" * + * EthernetInterface eth(MOSI, MISO, SCK, CS, RESET); * SNTPClient sntp; * * int main() { - * EthernetInterface eth; + * * eth.init(); //Use DHCP * eth.connect(); * printf("IP Address is %s\n\r", eth.getIPAddress());