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.
Dependents: mtsas mtsas mtsas mtsas
Diff: Cellular/Cellular.cpp
- Revision:
- 69:93dace69ee98
- Parent:
- 65:2cdd943bb3a3
- Child:
- 76:6eeffc10739d
diff -r 66f4126100b5 -r 93dace69ee98 Cellular/Cellular.cpp
--- a/Cellular/Cellular.cpp Tue Oct 21 21:14:13 2014 +0000
+++ b/Cellular/Cellular.cpp Tue Nov 11 17:54:06 2014 +0000
@@ -71,6 +71,12 @@
return "MTSMC-EV3-IP";
case MTSMC_C2_IP:
return "MTSMC-C2-IP";
+ case MTSMC_LAT1:
+ return "MTSMC_LAT1";
+ case MTSMC_LEU1:
+ return "MTSMC_LEU";
+ case MTSMC_VW2:
+ return "MTSMC_VW2";
default:
return "UNKNOWN ENUM";
}
@@ -217,7 +223,7 @@
done = true;
}
- if(type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_EV3 || type == MTSMC_C2) {
+ if(type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_EV3 || type == MTSMC_C2 || type == MTSMC_LAT1) {
if (result.find("CONNECT\r\n") != std::string::npos) {
done = true;
}
@@ -249,7 +255,7 @@
{
string csmp;
- if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3) {
+ if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_LAT1) {
csmp = "AT+CSMP=17,167,0,0";
} else if (type == MTSMC_EV3_IP || type == MTSMC_EV3 || type == MTSMC_C2_IP || type == MTSMC_C2) {
csmp = "AT+CSMP=,4098,0,2";
@@ -320,7 +326,7 @@
}
//Start of SMS message
std::vector<std::string> vSmsParts = Text::split(line, ',');
- if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3) {
+ if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3 || type == MTSMC_LAT1) {
/* format for H5 and H5-IP radios
* <index>, <status>, <oa>, <alpha>, <scts>
* scts contains a comma, so splitting on commas should give us 6 items