Wiljan Arias / WhexReefMonitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Revision:
4:a19825caaf41
Parent:
3:5dc0023e6284
Child:
5:df012c2caf40
diff -r 5dc0023e6284 -r a19825caaf41 Services/EthernetService.cpp
--- a/Services/EthernetService.cpp	Fri Jan 31 23:19:28 2014 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-#include "EthernetService.h"
-
-EthernetService::EthernetService() {
-      ethernetInterface = new EthernetNetIf();
-      ntpClient = new NTPClient();
-}
-
-EthernetService::~EthernetService() {
-    delete ntpClient;
-    delete ethernetInterface;
-}
-
-int EthernetService::setup() {
-    EthernetErr ethErr = ethernetInterface->setup();
-    if(ethErr) {
-        return 0;    
-    }
-    return 1;
-}
-
-int EthernetService::setRtcTime() {
-    Host server(IpAddr(), 123, "0.es.pool.ntp.org"); 
-    ntpClient->setTime(server);
-    return 1;
-}
\ No newline at end of file