Christopher Haster / ESP8266Interface

Dependencies:   ESP8266

Fork of ESP8266Interface by NetworkSocketAPI

Files at this revision

API Documentation at this revision

Comitter:
sam_grove
Date:
Wed Mar 09 06:11:11 2016 +0000
Parent:
52:42441dd2093e
Child:
54:e78fad32cfff
Commit message:
change ESP8266Socket from struct to class

Changed in this revision

ESP8266Interface.h Show annotated file Show diff for this revision Revisions of this file
--- a/ESP8266Interface.h	Thu Mar 03 17:51:31 2016 +0000
+++ b/ESP8266Interface.h	Wed Mar 09 06:11:11 2016 +0000
@@ -22,13 +22,13 @@
 
 #define ESP8266_SOCKET_COUNT 5
 
-
 /** ESP8266Interface class
  *  Implementation of the NetworkInterface for the ESP8266
  */
 class ESP8266Interface : public WiFiInterface
 {
 public:
+
     ESP8266Interface(PinName tx, PinName rx, bool debug = false);
     virtual ~ESP8266Interface();
 
@@ -48,12 +48,15 @@
     virtual void destroySocket(SocketInterface *socket);
 
 private:
+
     ESP8266 _esp;
     bool _ids[ESP8266_SOCKET_COUNT];
     
     // Implementation of the SocketInterface for the ESP8266
-    struct ESP8266Socket : public SocketInterface
+    class ESP8266Socket : public SocketInterface
     {
+    public:
+    
         // ESP8266 specific details
         ESP8266 *_esp;
         ns_protocol_t _proto;
@@ -71,5 +74,4 @@
     };
 };
 
-
 #endif