ACTUALIZED LIBRARY 0 Open (Default) 1 WEP-128 2 WPA1 3 Mixed WPA1 & WPA2-PSK 4 WPA2-PSK 5 Not Used 6 Adhoc, Join any Adhoc network

Dependents:   mbed_Arduino_sensor

Fork of WiflyInterface by Samuel Mokrani

Revision:
9:aeddb7353e6e
Parent:
6:f281180726e8
--- 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"))