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: tests/test_TCP_Socket.h
- Revision:
- 71:82205735732b
- Parent:
- 58:408f67fa292f
- Child:
- 96:27bdf4aa3a31
--- a/tests/test_TCP_Socket.h Tue Dec 24 01:15:44 2013 +0000 +++ b/tests/test_TCP_Socket.h Thu Dec 26 16:12:49 2013 +0000 @@ -4,14 +4,14 @@ using namespace mts; void testTcpSocket() { - Cellular::Code code; + Code code; const int TEST_PORT = 7000; const std::string TEST_SERVER("204.26.122.5"); printf("TCP SOCKET TESTING\r\n"); printf("Setting APN\r\n"); code = Cellular::getInstance()->setApn("b2b.tmobile.com"); - if(code == Cellular::CELL_OK) { + if(code == SUCCESS) { printf("Success!\r\n"); } else { printf("Error during APN setup [%d]\r\n", (int)code); @@ -19,7 +19,7 @@ printf("Setting Socket Closeable\r\n"); code = Cellular::getInstance()->setSocketCloseable(); - if(code == Cellular::CELL_OK) { + if(code == SUCCESS) { printf("Success!\r\n"); } else { printf("Error setting socket closeable [%d]\r\n", (int)code);