Team E1

Fork of HTTPServer by Sam Kirsch

Revision:
9:c2a1462b9b71
Parent:
6:fe661fa9d18a
Child:
13:aa5338a5e452
diff -r cb7fec1265b5 -r c2a1462b9b71 HTTPServer.h
--- a/HTTPServer.h	Sat Jun 01 17:47:45 2013 +0000
+++ b/HTTPServer.h	Sun Jun 02 00:33:56 2013 +0000
@@ -23,6 +23,7 @@
 #ifndef __HTTPSERVER_H__
 #define __HTTPSERVER_H__
 #include "mbed.h"
+#include "WiflyInterface.h"
 #include "HTTPConnection.h"
 #include "HTTPRequestHandler.h"
 
@@ -77,12 +78,12 @@
         
         TCPSocketServer*        m_pSvr;
         bool                    m_bServerListening;
-        Serial*                 m_pDbg;
-
+        WiflyInterface          m_wifly;
+        
     public:
         /** Constructor for HTTPServer objects.
         */
-        HTTPServer(Serial* dbg = NULL);
+        HTTPServer(PinName tx, PinName rx, PinName reset, PinName tcp_status, const char * ssid, const char * phrase, Security sec);
         
         /** Destructor for HTTPServer objects.
         */
@@ -138,6 +139,9 @@
         * ready for processing the next request. Simply call \c poll as long as you want to serve new incoming requests.
         */
         int poll(bool blocking = true);
+ 
+        string getTime()
+        { return m_wifly.getTime(false); }
   
     private:
         /** The standard error handler function.