Clock display on app board LCD is set using an NTP network time server. DHCP service must be enabled for mbed to get an IP address. A network cable is needed.

Dependencies:   C12832_lcd EthernetInterface NTPClient mbed-rtos mbed

Files at this revision

API Documentation at this revision

Comitter:
4180_1
Date:
Tue Oct 01 19:53:45 2013 +0000
Parent:
0:9653261dbcda
Commit message:
ver 1.0

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 9653261dbcda -r 9095ffb76813 main.cpp
--- a/main.cpp	Tue Oct 01 19:50:14 2013 +0000
+++ b/main.cpp	Tue Oct 01 19:53:45 2013 +0000
@@ -22,7 +22,7 @@
     }
     lcd.cls();
     lcd.printf("Trying to update time...\r\n");
-    if (ntp.setTime("ca.pool.ntp.org") == 0) {
+    if (ntp.setTime("0.pool.ntp.org") == 0) {
         lcd.printf("Set time successfully\r\n");
         while(1) {
             lcd.cls();