wifly/socket interface for wifly modules

Dependents:   WiFi neurGAI_WIFI thingspeak thingspeak2

Files at this revision

API Documentation at this revision

Comitter:
samux
Date:
Thu Aug 23 15:18:48 2012 +0000
Parent:
8:9a3cd07ed7e8
Child:
10:81445de1fe27
Commit message:
no cmd mode on connect

Changed in this revision

Socket/TCPSocketConnection.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Socket/TCPSocketConnection.cpp	Thu Aug 23 14:08:08 2012 +0000
+++ b/Socket/TCPSocketConnection.cpp	Thu Aug 23 15:18:48 2012 +0000
@@ -27,18 +27,6 @@
     char cmd[30];
     char rcv[40];
 
-    // if we cannot enter in cmd mode, maybe we have a tcp connection opened.
-    // in this case we need to wait at least 0.25s to enter in cmd mode
-    if (!wifi->cmdMode()) {
-        wait(0.25);
-        if (!wifi->cmdMode()) {
-            wifi->send("\r", 1);
-            wait(0.1);
-            wifi->exit();
-            return -1;
-        }
-    }
-
     if (wifi->dnsLookup(host, rcv)) {
         sprintf(cmd, "set ip host %s\r", rcv);
         if (!wifi->sendCommand(cmd, "AOK"))