wifly/socket interface for wifly modules
Dependents: WiFi neurGAI_WIFI thingspeak thingspeak2
Diff: Socket/TCPSocketConnection.cpp
- Revision:
- 9:aeddb7353e6e
- Parent:
- 6:f281180726e8
- Child:
- 11:b912f91e3212
diff -r 9a3cd07ed7e8 -r aeddb7353e6e Socket/TCPSocketConnection.cpp --- 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"))