Cellular library for MTS Socket Modem Arduino Shield devices from Multi-Tech Systems
Dependents: mtsas mtsas mtsas mtsas
Diff: Cellular/Cellular.cpp
- Revision:
- 26:2b769ed8de4f
- Parent:
- 23:8333593dd86f
- Child:
- 35:257eb41405e1
--- a/Cellular/Cellular.cpp Mon Jun 23 14:33:01 2014 +0000 +++ b/Cellular/Cellular.cpp Thu Jun 26 21:12:37 2014 +0000 @@ -132,21 +132,8 @@ return UNKNOWN; } -Code Cellular::setApn(const std::string& apn) -{ - if (type == MTSMC_H5_IP || type == MTSMC_H5 || type == MTSMC_G3) { - Code code = sendBasicCommand("AT#APNSERV=\"" + apn + "\"", 1000); - if (code != MTS_SUCCESS) { - return code; - } - this->apn = apn; - return code; - } else { - logInfo("CDMA radios don't need an APN"); - return MTS_SUCCESS; - } -} - +//Removed setAPN to be implemented in the individual cellular classes, +//as UIP and EasyIP implement it in different ways. Code Cellular::setDns(const std::string& primary, const std::string& secondary) {