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/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)
{
