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: cellular/Cellular.cpp
- Revision:
- 59:7777b3ed5a4c
- Parent:
- 57:88b07490d7e8
- Parent:
- 58:408f67fa292f
- Child:
- 67:1003b410f781
--- a/cellular/Cellular.cpp Fri Dec 20 20:29:10 2013 +0000 +++ b/cellular/Cellular.cpp Fri Dec 20 21:11:56 2013 +0000 @@ -304,7 +304,8 @@ return -1; } - if(!socketOpened) { + //Check that nothing is in the rx buffer + if(!socketOpened && !io->readable()) { printf("[ERROR] Socket is not open\r\n"); return -1; }