Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of ublox-cellular-base by
Revision 17:a01b693a2e63, committed 2018-09-10
- Comitter:
- cblack
- Date:
- Mon Sep 10 18:44:17 2018 -0500
- Parent:
- 15:93b157a47b8d
- Child:
- 18:eb3480afeae0
- Child:
- 19:98e4136e3980
- Commit message:
- Add support for LARA-R2
Changed in this revision
| UbloxCellularBase.cpp | Show annotated file Show diff for this revision Revisions of this file |
| UbloxCellularBase.h | Show annotated file Show diff for this revision Revisions of this file |
--- 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;
--- a/UbloxCellularBase.h Thu Jul 12 10:13:45 2018 +0500
+++ b/UbloxCellularBase.h Mon Sep 10 18:44:17 2018 -0500
@@ -205,7 +205,8 @@
DEV_SARA_R4,
DEV_LEON_G2,
DEV_TOBY_L2,
- DEV_MPCI_L2
+ DEV_MPCI_L2,
+ DEV_LARA_R2
} DeviceType;
/** Network registration status.
