Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Revision:
1:9db0e321a9f4
Parent:
0:5b88d5760320
--- 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_