A library for talking to Multi-Tech's Cellular SocketModem Devices.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: wifi/Wifi.cpp
- Revision:
- 122:5f95f81a8b03
- Parent:
- 121:5a7fba896c98
- Child:
- 127:526003734633
--- a/wifi/Wifi.cpp Tue Dec 31 23:41:59 2013 +0000 +++ b/wifi/Wifi.cpp Thu Jan 02 15:45:52 2014 +0000 @@ -289,6 +289,10 @@ bool Wifi::isOpen() { + if(io->readable()) { + printf("[DEBUG] Assuming open, data available to read.\n\r"); + return true; + } if(!setCmdMode(true)) { printf("[ERROR] Failed to properly check if TCP connection is open.\r\n"); return socketOpened;