Fork of ublox-cellular-base to add LARA-R2 support

Fork of ublox-cellular-base by u-blox

Revision:
17:a01b693a2e63
Parent:
15:93b157a47b8d
Child:
18:eb3480afeae0
Child:
19:98e4136e3980
diff -r 93b157a47b8d -r a01b693a2e63 UbloxCellularBase.cpp
--- a/UbloxCellularBase.cpp	Thu Jul 12 10:13:45 2018 +0500
+++ b/UbloxCellularBase.cpp	Mon Sep 10 18:44:17 2018 -0500
@@ -646,6 +646,8 @@
             *dev = DEV_TOBY_L2;
         else if (strstr(buf, "MPCI-L2"))
             *dev = DEV_MPCI_L2;
+        else if (strstr(buf, "LARA-R2"))
+            *dev = DEV_LARA_R2;
     }
 
     UNLOCK();
@@ -662,7 +664,7 @@
 
     if ((dev == DEV_LISA_U2) || (dev == DEV_LEON_G2) || (dev == DEV_TOBY_L2)) {
         success = _at->send("AT+UGPIOC=20,2") && _at->recv("OK");
-    } else if ((dev == DEV_SARA_U2) || (dev == DEV_SARA_G35)) {
+    } else if ((dev == DEV_SARA_U2) || (dev == DEV_SARA_G35) || (dev == DEV_LARA_R2)) {
         success = _at->send("AT+UGPIOC=16,2") && _at->recv("OK");
     } else {
         success = true;