nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches

◆ sms_send_text()

int sms_send_text ( const char *  number,
const char *  text 
)

#include <include/modem/sms.h>

Send SMS message as ASCII string with ISO-8859-15 extension.

Sending is done with GSM 7bit encoding used to encode textual SMS messages. SMS-SUBMIT message is specified in 3GPP TS 23.040 Section 9.2.2.2 and data encoding in 3GPP TS 23.038 Section 4 and Section 6.2.

This function does the same as if sms_send would be called with SMS_DATA_TYPE_ASCII type.

This function doesn't support sending of 8 bit binary data messages or UCS2 encoded text.

Parameters
[in]numberRecipient number in international format.
[in]textText to be sent as ASCII string with ISO-8859-15 extension.
Return values
-EINVALInvalid parameter.
Returns
0 on success, otherwise error code. A positive value on AT error with "ERROR", "+CME ERROR", and "+CMS ERROR" responses. The type can be resolved with nrf_modem_at_err_type and the error value with nrf_modem_at_err.