Christopher Haster / ESP8266Interface

Dependencies:   ESP8266

Fork of ESP8266Interface by NetworkSocketAPI

Revision:
53:8ded612adb96
Parent:
51:eb8c3577e22d
Child:
55:c0808849cb89
--- 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