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 MTS-Cellular by
Diff: Cellular/CellularFactory.cpp
- Revision:
- 26:2b769ed8de4f
- Parent:
- 16:1bc3e44d4746
- Child:
- 27:ec44d5a9544f
--- a/Cellular/CellularFactory.cpp Mon Jun 23 14:33:01 2014 +0000
+++ b/Cellular/CellularFactory.cpp Thu Jun 26 21:12:37 2014 +0000
@@ -35,14 +35,15 @@
wait(1);
}
- /* AT#VVERSION is a IUP specific AT command
+ /* AT#VVERSION is a UIP specific AT command
* if we get an error response, we're not using a UIP board */
reply = sendCommand(io, "AT#VVERSION", 2000);
- if (reply.find("error") != string::npos) {
+ if (reply.find("ERROR") != string::npos) {
uip = false;
} else {
uip = true;
}
+
if (uip && model.find("HE910") != string::npos) {
type = Cellular::MTSMC_H5_IP;
@@ -56,7 +57,7 @@
type = Cellular::MTSMC_C2_IP;
logDebug("radio model: CE910");
cell = new UIP(type);
- /*
+
} else if (model.find("HE910") != string::npos) {
type = Cellular::MTSMC_H5;
logDebug("radio model: HE910");
@@ -73,7 +74,7 @@
type = Cellular::MTSMC_C2;
logDebug("radio model: CE910");
cell = new EasyIP(type);
- */
+
} else {
logError("cannot continue - could not determine radio type");
return NULL;
