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

Dependents:   RN-XV_simple_server

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Mon Aug 15 11:28:45 2011 +0000
Parent:
6:f2d3f1528280
Child:
8:d72bfdccb5d8
Commit message:

Changed in this revision

Wifly.cpp Show annotated file Show diff for this revision Revisions of this file
--- 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);