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.h
- Revision:
- 7:0ee8e69a3e9c
- Parent:
- 3:04046eebaef5
- Child:
- 8:2d7259d244d1
--- a/Cellular/Cellular.h Wed May 21 08:34:43 2014 -0500
+++ b/Cellular/Cellular.h Wed May 21 15:21:25 2014 -0500
@@ -159,7 +159,7 @@
/// Enumeration for different cellular radio types.
enum Radio {
- NA, H5, EV3, G3, C2, H5_IP, EV3_IP, C2_IP
+ NA, MTSMC_H5, MTSMC_EV3, MTSMC_G3, MTSMC_C2, MTSMC_H5_IP, MTSMC_EV3_IP, MTSMC_C2_IP
};
/// An enumeration of radio registration states with a cell tower.
@@ -246,7 +246,7 @@
* @param message the text message to be sent.
* @returns the standard AT Code enumeration.
*/
- virtual Code sendSMS(const std::string& phoneNumber, const std::string& message) = 0;
+ virtual Code sendSMS(const std::string& phoneNumber, const std::string& message);
/** This method is used to send an SMS message. Note that you cannot send an
* SMS message and have a data connection open at the same time.
@@ -254,21 +254,21 @@
* @param sms an Sms struct that contains all SMS transaction information.
* @returns the standard AT Code enumeration.
*/
- virtual Code sendSMS(const Sms& sms) = 0;
+ virtual Code sendSMS(const Sms& sms);
/** This method retrieves all of the SMS messages currently available for
* this phone number.
*
* @returns a vector of existing SMS messages each as an Sms struct.
*/
- virtual std::vector<Cellular::Sms> getReceivedSms() = 0;
+ virtual std::vector<Cellular::Sms> getReceivedSms();
/** This method can be used to remove/delete all received SMS messages
* even if they have never been retrieved or read.
*
* @returns the standard AT Code enumeration.
*/
- virtual Code deleteAllReceivedSms() = 0;
+ virtual Code deleteAllReceivedSms();
/** This method can be used to remove/delete all received SMS messages
* that have been retrieved by the user through the getReceivedSms method.
@@ -276,7 +276,7 @@
*
* @returns the standard AT Code enumeration.
*/
- virtual Code deleteOnlyReceivedReadSms() = 0;
+ virtual Code deleteOnlyReceivedReadSms();
//Cellular Radio Specific
/** A method for sending a generic AT command to the radio. Note that you cannot