yet another 18B20 Temperature sensor. variable number of sensors working in parasite mode, serial 16x2 display with diagnostic output and post to a rest web service

Dependencies:   EthernetInterface HTTPClient NTPClient mbed-rtos mbed

Revision:
1:9e88b2508768
Parent:
0:53f05303850a
--- a/ntp_proxy.cpp	Mon Dec 31 12:08:24 2012 +0000
+++ b/ntp_proxy.cpp	Thu Jan 03 18:50:43 2013 +0000
@@ -1,10 +1,10 @@
 #include "ntp_proxy.h"
 
-NtpProxy::NtpProxy(void) {
+NtpProxy::NtpProxy(const char * timeserver) : timeserver(timeserver) {
     ntp_client = new NTPClient();
 }
 
 int NtpProxy::set_time(void) {
-    NTPResult r = ntp_client->setTime("time.apple.com");
+    NTPResult r = ntp_client->setTime(timeserver);
     return r == NTP_OK;
 }