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: TYBLE16_simple_data_logger TYBLE16_MP3_Air
Diff: features/cellular/framework/API/CellularSMS.h
- Revision:
- 1:9db0e321a9f4
- Parent:
- 0:5b88d5760320
diff -r 5b88d5760320 -r 9db0e321a9f4 features/cellular/framework/API/CellularSMS.h
--- a/features/cellular/framework/API/CellularSMS.h Tue Dec 17 23:23:45 2019 +0000
+++ b/features/cellular/framework/API/CellularSMS.h Tue Dec 31 06:02:27 2019 +0000
@@ -18,6 +18,8 @@
#ifndef CELLULAR_SMS_H_
#define CELLULAR_SMS_H_
+#if MBED_CONF_CELLULAR_USE_SMS
+
#include "Callback.h"
#include "nsapi_types.h"
@@ -62,6 +64,11 @@
CellularSMSMmodeText
};
+ enum CellularSMSEncoding {
+ CellularSMSEncoding7Bit,
+ CellularSMSEncoding8Bit,
+ };
+
/** Does all the necessary initializations needed for receiving and sending SMS.
*
* @param mode enumeration for choosing the correct mode: text/pdu
@@ -69,7 +76,8 @@
* NSAPI_ERROR_NO_MEMORY on memory failure
* NSAPI_ERROR_DEVICE_ERROR on other failures
*/
- virtual nsapi_error_t initialize(CellularSMSMmode mode) = 0;
+ virtual nsapi_error_t initialize(CellularSMSMmode mode,
+ CellularSMSEncoding encoding = CellularSMSEncoding::CellularSMSEncoding7Bit) = 0;
/** Send the SMS with the given parameters
*
@@ -173,4 +181,6 @@
} // namespace mbed
+#endif // MBED_CONF_CELLULAR_USE_SMS
+
#endif // CELLULAR_SMS_H_