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:
19:9ab60b80872e
Parent:
18:b265b3b696f1
Child:
22:a1276b7d3b2d
--- a/SPWFInterface.cpp	Tue Jun 21 20:20:50 2016 +0000
+++ b/SPWFInterface.cpp	Wed Jun 22 14:53:11 2016 +0000
@@ -111,14 +111,18 @@
     // Check for valid channel_num
     if (channel_num < 1 || channel_num > 14) 
     {
+        #if DEBUG_PRINT
         printf("channel_num must be between 1 and 14\n");
+        #endif
         return NSAPI_ERROR_PARAMETER;
     }
     
     // Verify that the access point is between 1-32
     if ((NULL == ap && mode != None) || strlen(ap) < 1 || strlen(ap) > 32)
     {
+        #if DEBUG_PRINT
         printf("ap length must be between 1 and 32\n");
+        #endif
         return NSAPI_ERROR_PARAMETER;
     }
     
@@ -144,7 +148,9 @@
 //        }
         default:
         {
+            #if DEBUG_PRINT
             printf("Assuming open wifi access point\n");
+            #endif
             mode = None;
             pass_phrase = NULL;
         }