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

Dependents:   mtsas mtsas mtsas mtsas

Revision:
81:2e12915f892e
Parent:
78:fc9d2b983744
Child:
82:5b33b670adb7
--- a/Cellular/EasyIP.cpp	Wed Sep 09 18:12:52 2015 +0000
+++ b/Cellular/EasyIP.cpp	Wed Nov 15 16:53:29 2017 -0600
@@ -534,6 +534,16 @@
         }
         this->apn = apn;
         return code;
+    } else if (type == MTQ_MAT1) {
+        Code code = sendBasicCommand("AT+CGDCONT=1,\"IPV4V6\",\"" + apn + "\"", 1000);
+        if (code != MTS_SUCCESS) {
+            return code;
+        }
+        this->apn = apn;
+        return code;
+    } else if (type == MTQ_MVW1) {
+        logInfo("MTQ_MVW1 does not need an APN");
+        return MTS_SUCCESS;       
     } else {
         logInfo("CDMA radios don't need an APN");
         return MTS_SUCCESS;