Extending the X_NUCLEO_IDW01M1 to allow configuration of the board as an access point

Dependents:   X_NUCLEO_IDW01M1_AP_Test

Fork of X_NUCLEO_IDW01M1 by ST

Revision:
11:67a8c3499caf
Parent:
9:d2dfbf8e7f49
Child:
12:3799f8475c8a
--- a/SPWFInterface.cpp	Fri May 13 07:43:12 2016 +0000
+++ b/SPWFInterface.cpp	Sat May 14 07:28:29 2016 +0000
@@ -30,7 +30,17 @@
     bool connected;
 };
 
-// SpwfSAInterface implementation
+
+/**
+* @brief  SpwfSAInterface constructor         
+* @param  tx: Pin USART TX  
+*         rx: Pin USART RX
+*         rst: reset pin for Spwf module
+*         wkup: reset pin for Spwf module
+*         rts: Pin USART RTS
+*         debug : not used
+* @retval none
+*/
 SpwfSAInterface::SpwfSAInterface(PinName tx, PinName rx, PinName rst, PinName wkup, PinName rts, bool debug)
     : _spwf(tx, rx, rst, wkup, rts)
 {
@@ -177,12 +187,7 @@
         }
         
         memset(socket, 0, sizeof (struct spwf_socket));
-        /*
-        if(get_network_socket(&temp_socket)!=0)
-        {
-            return NSAPI_ERROR_NO_SOCKET;
-        }*/
-        
+                
         socket->id = server_socket->id;
         socket->server_port = server_socket->server_port;
         socket->proto = server_socket->proto;
@@ -197,21 +202,6 @@
     return NSAPI_ERROR_WOULD_BLOCK;
 }
 
-/*
-int SpwfSAInterface::get_network_socket(struct spwf_socket **handle)
-{
-    struct spwf_socket *__socket = new struct spwf_socket;//create new network socket
-    __socket = new struct spwf_socket;//create new network socket
-    if (!__socket) {
-        return NSAPI_ERROR_NO_SOCKET;
-    }
-    
-    memset(__socket, 0, sizeof (struct spwf_socket));
-    *handle = __socket;
-    return 0;
-}
-*/
-
 int SpwfSAInterface::socket_close(void *handle)
 {
     struct spwf_socket *socket = (struct spwf_socket *)handle;