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:
8:0f302a13e21b
Parent:
7:0fdd186a7d90
Child:
10:e97284ae55f1
--- a/Spwf/wifi_module.c	Wed May 11 06:12:16 2016 +0000
+++ b/Spwf/wifi_module.c	Thu May 12 07:36:13 2016 +0000
@@ -118,6 +118,7 @@
 uint32_t sockD_total_count=0;
 uint32_t ip_fragment_count=0;
 uint32_t chunk_size;
+int      write_size;
 uint32_t message_size;
 uint32_t WIND55_count=0;
 volatile uint32_t WIND64_count=0;
@@ -165,11 +166,7 @@
 uint8_t scanned_ssids = 0;
 char * prefetch_str;
 
-#if defined (USE_STM32F4XX_NUCLEO) || (USE_STM32L4XX_NUCLEO)
-uint8_t WiFi_AT_Cmd_Buff[2048];
-#else
-uint8_t WiFi_AT_Cmd_Buff[1024];
-#endif
+uint8_t WiFi_AT_Cmd_Buff[2052];
 
 #ifdef USART_PRINT_MSG
 #define printf(arg)    {sprintf((char*)print_msg_buff,arg);   \
@@ -485,8 +482,8 @@
                  
                 case WIFI_CLIENT_SOCKET_OPEN_EVENT:
                         
-                        if(!open_sockets[event_pop_s->socket_id])//make sure socket is closed
-                        {
+                        //if(!open_sockets[event_pop_s->socket_id])//make sure socket is closed
+                        //{
                             Reset_AT_CMD_Buffer();
     
                             /* AT+S.SOCKON = myserver,1234,t <cr> */  
@@ -500,7 +497,7 @@
                               status_flag.AT_Response_Received = WIFI_TRUE;
                               AT_RESPONSE = WiFi_AT_CMD_RESP_ERROR;
                             }
-                        }
+                        //}
                         break;
                         
                 case WIFI_CLIENT_SOCKET_CLOSE_EVENT:
@@ -1332,7 +1329,7 @@
                {
                   if(status_flag.enable_sock_read && status_flag.Q_Contains_Message && !status_flag.message_pending)
                   {
-                       //printf((const char*)&process_buffer[0]);
+                      //printf((const char*)&process_buffer[0]);
                       status_flag.Q_Contains_Message = WIFI_FALSE;                      
                       message_size = SockON_Data_Length;//Total size
                       chunk_size = Fillptr;