Damien Frost / WiflyInterface

Dependents:   IoT_Ex BatteryModelTester BatteryModelTester

Fork of WiflyInterface by Components

Revision:
13:8846f12fa277
Parent:
12:1aaea7f302e6
Child:
15:eaa1ec0e26bf
--- a/Wifly/Wifly.cpp	Thu Feb 18 12:05:53 2016 +0000
+++ b/Wifly/Wifly.cpp	Thu Feb 18 12:12:30 2016 +0000
@@ -68,7 +68,6 @@
 bool Wifly::join()
 {
     char cmd[20];
-    pc.printf("Got to 0\n\r");
 
     for (int i= 0; i < MAX_TRY_JOIN; i++) {
 
@@ -169,13 +168,9 @@
 
         exit();
 
-        pc.printf("Got to 10\n\r");
-
         state.associated = true;
         INFO("\r\nssid: %s\r\nphrase: %s\r\nsecurity: %s\r\n\r\n", this->ssid, this->phrase, getStringSecurity());
-        
-        
-        pc.printf("\r\nssid: %s\r\nphrase: %s\r\nsecurity: %s\r\n\r\n", this->ssid, this->phrase, getStringSecurity());
+
         return true;
     }
     return false;
@@ -217,6 +212,8 @@
             return "WEP_128";
         case WPA:
             return "WPA";
+        case WPA2:
+            return "WPA2";
     }
     return "UNKNOWN";
 }