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:
Mon Feb 09 20:47:37 2015 +0000
Parent:
72:7862171b277d
Parent:
71:8e8152d955d1
Child:
75:60ff839c9b6d
Commit message:
merge changes

Changed in this revision

Cellular/EasyIP.cpp Show annotated file Show diff for this revision Revisions of this file
--- a/Cellular/EasyIP.cpp	Fri Jan 23 16:51:13 2015 -0600
+++ b/Cellular/EasyIP.cpp	Mon Feb 09 20:47:37 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;
 }