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:
115:b26176f23e89
Parent:
39:6e94520a3217
Child:
124:6d964b4343c8
--- a/tests/test_SMS.h	Tue Dec 31 17:32:57 2013 +0000
+++ b/tests/test_SMS.h	Tue Dec 31 21:47:11 2013 +0000
@@ -2,15 +2,17 @@
 #ifndef _TEST_SMS_H_
 #define _TEST_SMS_H_
 
+using namespace mts;
+
 void sendSms() {
-    Cellular::Code code;
+    Code code;
     std::string sMsg("Hello from Multi-Tech MBED!");
-    std::string sPhoneNum("16514085259");
+    std::string sPhoneNum(""); // insert your phone number prepended with a 1, if you number is 222-867-5309 you'd put 12228675309
     
     printf("Sending message [%s] to [%s]\r\n", sMsg.c_str(), sPhoneNum.c_str());
     code = Cellular::getInstance()->sendSMS(sPhoneNum, sMsg);
     
-    if(code != Cellular::CELL_OK) {
+    if(code != SUCCESS) {
         printf("Error during SMS send [%d]\r\n", (int)code);
     } else {
         printf("Success!\r\n");