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:
- 58:408f67fa292f
- Parent:
- 55:56d9a9d98079
- Child:
- 59:7777b3ed5a4c
--- a/cellular/Cellular.cpp Fri Dec 20 16:26:10 2013 +0000 +++ b/cellular/Cellular.cpp Fri Dec 20 21:10:13 2013 +0000 @@ -305,7 +305,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; }