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:
mfiore
Date:
Wed Mar 25 17:59:46 2015 +0000
Parent:
74:d232ae44d136
Parent:
73:bba8669d36f7
Child:
76:6eeffc10739d
Commit message:
merge after accepting pull request from MTS-Cellular-dev

Changed in this revision

--- a/Cellular/EasyIP.cpp	Wed Mar 11 19:14:35 2015 +0000
+++ b/Cellular/EasyIP.cpp	Wed Mar 25 17:59:46 2015 +0000
@@ -46,6 +46,11 @@
     if(sendBasicCommand("AT+IFC=2,2", 2000) != MTS_SUCCESS) {
         logWarning("Failed to enable serial flow control");
     }
+    // Shorten data sending timeout from 5s to 100ms
+    // Some servers won't handle a timeout that long
+    if (sendBasicCommand("AT#SCFG=1,1,300,90,600,1", 2000) != MTS_SUCCESS) {
+        logWarning("Failed to reconfigure socket timeout parameters");
+    }
     return true;
 }