Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas
Diff: Cellular/CellularFactory.cpp
- Revision:
- 52:2cb58398a4f9
- Parent:
- 51:ffc556ba33f7
- Child:
- 58:de5f2c001ab0
--- a/Cellular/CellularFactory.cpp Tue Aug 05 18:35:22 2014 +0000 +++ b/Cellular/CellularFactory.cpp Mon Aug 11 16:03:19 2014 +0000 @@ -29,11 +29,10 @@ if (model.find("error") == string::npos && model.find("ERROR") == string::npos && !model.empty()) { /* didn't get an error - keep going */ if(model.find("#STN") != string::npos) { - //If response found is from unsolicited response #STN: from the radio, - //then we got an unsolicited response, and to try again. + //Temporary fix for unsolicited #STN from radio startup continue; } - break; + break; } wait(1); @@ -47,21 +46,19 @@ } else { uip = true; } - if (uip && model.find("HE910") != string::npos) { type = Cellular::MTSMC_H5_IP; - logDebug("radio model: HE910"); + logDebug("UIP radio model: HE910"); cell = new UIP(type); } else if (uip && model.find("DE910") != string::npos) { type = Cellular::MTSMC_EV3_IP; - logDebug("radio model: DE910"); + logDebug("UIP radio model: DE910"); cell = new UIP(type); } else if (uip && model.find("CE910") != string::npos) { type = Cellular::MTSMC_C2_IP; - logDebug("radio model: CE910"); + logDebug("UIP radio model: CE910"); cell = new UIP(type); - } else if (model.find("HE910") != string::npos) { type = Cellular::MTSMC_H5; logDebug("radio model: HE910"); @@ -78,7 +75,6 @@ type = Cellular::MTSMC_C2; logDebug("radio model: CE910"); cell = new EasyIP(type); - } else { logError("cannot continue - could not determine radio type"); return NULL;