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

Revision:
53:27c9622de0f9
Parent:
44:86fa8f50a1df
Child:
55:56d9a9d98079
--- a/tests/test_TCP_Socket_Echo.h	Thu Dec 19 22:24:59 2013 +0000
+++ b/tests/test_TCP_Socket_Echo.h	Fri Dec 20 14:28:01 2013 +0000
@@ -31,6 +31,21 @@
         printf("Error setting socket closeable [%d]\r\n", (int)code);
     }
     
+    printf("Setting Local Port\r\n");
+    if(Cellular::getInstance()->bind(5000)) {
+        printf("Success!\r\n");
+    } else {
+        printf("Error setting local port [%d]\r\n", (int)code);
+    }
+    
+    printf("Setting Primary DNS\r\n");
+    code = Cellular::getInstance()->setDns("8.8.8.8");
+    if(code == Cellular::CELL_OK) {
+        printf("Success!\r\n");
+    } else {
+        printf("Error setting primary DNS [%d]\r\n", (int)code);
+    }
+    
     printf("Establishing PPP Connection\r\n");
     if(Cellular::getInstance()->connect()) {
         printf("Success!\r\n");