cc

Dependencies:   SPWF01SA

Revision:
13:0368732b5b9d
Parent:
0:907910bfb0b5
Child:
14:4ec13009341c
--- a/SpwfInterface.h	Thu Nov 03 06:57:03 2016 +0000
+++ b/SpwfInterface.h	Tue Nov 22 14:38:43 2016 +0000
@@ -48,8 +48,8 @@
 class SpwfSAInterface : public NetworkStack, public WiFiInterface
 {
 public:
- 
-    SpwfSAInterface(PinName tx, PinName rx, bool debug = false);
+    SpwfSAInterface(PinName tx, PinName rx, bool debug);
+    SpwfSAInterface(PinName tx, PinName rx, PinName reset = PC_12, PinName wakeup = PC_8, bool debug = false);    
     virtual     ~SpwfSAInterface();
  
     // Implementation of WiFiInterface
@@ -77,6 +77,8 @@
     virtual     int socket_sendto(void *handle, const SocketAddress &address, const void *data, unsigned size);    
     virtual     int socket_recvfrom(void *handle, SocketAddress *address, void *buffer, unsigned size);    
     virtual     void socket_attach(void *handle, void (*callback)(void *), void *data);
+    virtual     int setsockopt(void *handle, int level, int optname, const void *optval, unsigned optlen);    
+    virtual     int getsockopt(void *handle, int level, int optname, void *optval, unsigned *optlen);    
            
 private:
     int         init(void);
@@ -84,7 +86,7 @@
     SPWFSA01 _spwf;
     bool _ids[SPWFSA_SOCKET_COUNT];
     bool isListening;
-    bool isInitialized;    
+    bool isInitialized;
 };