Wiljan Arias / WhexReefMonitor

Dependencies:   mbed-rtos EthernetInterface FatFileSystemCpp MCP23S17 SDFileSystem mbed

Fork of HTTPServerHelloWorld by Donatien Garnier

Committer:
wyunreal
Date:
Sat Feb 01 17:29:15 2014 +0000
Revision:
4:a19825caaf41
Parent:
Services/EthernetService.h@3:5dc0023e6284
creating the application model

Who changed what in which revision?

UserRevisionLine numberNew contents of line
wyunreal 3:5dc0023e6284 1 #ifndef ETHERNET_SERVICE_H
wyunreal 3:5dc0023e6284 2 #define ETHERNET_SERVICE_H
wyunreal 3:5dc0023e6284 3
wyunreal 3:5dc0023e6284 4 #include "EthernetNetIf.h"
wyunreal 3:5dc0023e6284 5 #include "NTPClient.h"
wyunreal 3:5dc0023e6284 6
wyunreal 3:5dc0023e6284 7 class EthernetService {
wyunreal 3:5dc0023e6284 8 private:
wyunreal 4:a19825caaf41 9 Ethernet* ethernetLink;
wyunreal 3:5dc0023e6284 10 EthernetNetIf* ethernetInterface;
wyunreal 3:5dc0023e6284 11 NTPClient* ntpClient;
wyunreal 4:a19825caaf41 12 int linkActive;
wyunreal 4:a19825caaf41 13 int needReconnection;
wyunreal 3:5dc0023e6284 14 public:
wyunreal 3:5dc0023e6284 15 EthernetService();
wyunreal 3:5dc0023e6284 16 ~EthernetService();
wyunreal 3:5dc0023e6284 17
wyunreal 3:5dc0023e6284 18 int setup();
wyunreal 3:5dc0023e6284 19 int setRtcTime();
wyunreal 4:a19825caaf41 20
wyunreal 4:a19825caaf41 21 void poll();
wyunreal 4:a19825caaf41 22 int isLinkRestored();
wyunreal 3:5dc0023e6284 23 };
wyunreal 3:5dc0023e6284 24
wyunreal 3:5dc0023e6284 25 #endif