Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems

Dependents:   mtsas mtsas mtsas mtsas

Files at this revision

API Documentation at this revision

Comitter:
Vanger
Date:
Fri Jul 25 18:05:50 2014 +0000
Parent:
37:14f819beeccf
Child:
40:ecef43f87c7a
Commit message:
Removed redundant flow control set command for EasyIP.cpp

Changed in this revision

Cellular/Cellular.cpp Show annotated file Show diff for this revision Revisions of this file
Cellular/EasyIP.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Cellular/Cellular.cpp	Wed Jul 23 16:04:41 2014 +0000
+++ b/Cellular/Cellular.cpp	Fri Jul 25 18:05:50 2014 +0000
@@ -269,10 +269,7 @@
         return code;
     }
     string cmd = "AT+CMGS=\"";
-    //EasyIP radios do not include the +
-    if(type == MTSMC_H5_IP || type == MTSMC_EV3_IP || type == MTSMC_C2_IP) {
-        cmd.append("+");
-    }
+    cmd.append("+");
     cmd.append(phoneNumber);
     cmd.append("\",145");
     for (int i = 0; i < 5; i++) {
--- a/Cellular/EasyIP.cpp	Wed Jul 23 16:04:41 2014 +0000
+++ b/Cellular/EasyIP.cpp	Fri Jul 25 18:05:50 2014 +0000
@@ -48,9 +48,6 @@
     if(sendBasicCommand("AT&K=3", 2000) != MTS_SUCCESS) {
         logWarning("Failed to set flow control to radio");
     }
-    if(sendBasicCommand("AT+IFC=2,2", 2000) != MTS_SUCCESS) {
-        logWarning("Failed to set flow control to radio");
-    }
     return true;
 }
 
@@ -387,7 +384,7 @@
     }
     //5) Open Socket  
     sprintf(sOpenSocketCmd, "AT#SD=1,%d,%d,%s,%d,%d,0", typeSocket, port, address.c_str(),closeType , local_port);
-    std::string response = sendCommand(sOpenSocketCmd, 140000);
+    std::string response = sendCommand(sOpenSocketCmd, 60000);
     
     if(response.find("CONNECT") != std::string::npos) {
         host_address = address;