Library to use a wifly module: RN 131 C/G

Dependents:   RN-XV_simple_server

Revision:
7:c6cf9ae117b1
Parent:
5:9890eb81f730
Child:
9:984c1436dd42
--- a/Wifly.cpp	Fri Aug 12 15:15:04 2011 +0000
+++ b/Wifly.cpp	Mon Aug 15 11:28:45 2011 +0000
@@ -122,6 +122,14 @@
         return false;
     }
     
+    //no echo
+    if(!Send("set uart mode 1\r\n", "AOK"))
+    {
+        printf("join: cannot set no echo\r\n");
+        exit();
+        return false;
+    }
+    
     if(!dhcp)
     {
         printf("not dhcp\r\n");
@@ -195,6 +203,14 @@
             exit();
             return false;
         }
+        
+        //no echo
+        if(!Send("set uart mode 1\r\n", "AOK"))
+        {
+            printf("join: cannot set no echo\r\n");
+            exit();
+            return false;
+        }
     
         //ssid
         sprintf(cmd, "set wlan ssid %s\r\n", ssid);