To Be Determined. Not yet support RTC of HAL for W7500. Programs using NTPClient as like SMTP have some bug. We will update RTC APIs for HAL. UDP, Network Time Protocol, UDP Clinet

Dependencies:   NTPClient WIZnetInterface mbed

Fork of NTPClient_HelloWorld by Donatien Garnier

Revision:
3:d4a44f6db5d8
Parent:
2:bf7dc5f5bca9
--- a/main.cpp	Sun Aug 05 16:17:31 2012 +0000
+++ b/main.cpp	Mon Jul 06 06:30:50 2015 +0000
@@ -7,12 +7,16 @@
 
 int main() 
 {
-    eth.init(); //Use DHCP
+    uint8_t mac_addr[6] = {0x00, 0x08, 0xDC, 0x01, 0x02, 0x03};
+    
+    //eth.init(); //Use DHCP
+    eth.init(mac_addr); //Use DHCP
 
     eth.connect();
    
     printf("Trying to update time...\r\n");
-    if (ntp.setTime("0.pool.ntp.org") == 0)
+    //if (ntp.setTime("0.pool.ntp.org") == 0)
+    if (ntp.setTime("jp.pool.ntp.org") == 0)
     {
       printf("Set time successfully\r\n");
       time_t ctTime;