Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: M2X_dev axeda_wrapper_dev MTS_M2x_Example1 MTS_Cellular_Connect_Example ... more
Diff: tests/test_TCP_Socket_Echo.h
- Revision:
- 71:82205735732b
- Parent:
- 68:c490e4a51778
- Child:
- 84:77c5ab16534d
diff -r c490e4a51778 -r 82205735732b tests/test_TCP_Socket_Echo.h
--- a/tests/test_TCP_Socket_Echo.h Tue Dec 24 01:15:44 2013 +0000
+++ b/tests/test_TCP_Socket_Echo.h Thu Dec 26 16:12:49 2013 +0000
@@ -8,14 +8,14 @@
void testTcpSocketEcho() {
using namespace mts;
- Cellular::Code code;
+ Code code;
const int TEST_PORT = 5798;
const std::string TEST_SERVER("204.26.122.96");
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);
@@ -23,7 +23,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);
@@ -38,7 +38,7 @@
printf("Setting Primary DNS\r\n");
code = Cellular::getInstance()->setDns("8.8.8.8");
- if(code == Cellular::CELL_OK) {
+ if(code == SUCCESS) {
printf("Success!\r\n");
} else {
printf("Error setting primary DNS [%d]\r\n", (int)code);
uIP Socket Modem Shield (Outdated - see below)