RUI3 (RAK Unified Interface 3) - RAK4631
bg77::cmgs

Public Member Functions

String set (String, String)
 
String set (String, int, String)
 
String set (int, String)
 

Member Function Documentation

◆ set() [1/3]

String set ( String  ,
String   
)
Description
This api sends a short message from TE to network (SMS-SUBMIT).
Syntax
bg77.cmgs.set(da,data)
Parameters
daString Destination address. 3GPP TS 23.040 TP-Destination-Address Address-Value field in string format. BCD numbers (or GSM 7 bit default alphabet characters) are converted to characters of the currently selected TE character set (refer to command AT+CSCS in 3GPP TS 27.007). The type of address is given by <toda>.
dataString text message
Returns
String response

◆ set() [2/3]

String set ( String  ,
int  ,
String   
)
Description
This api sends a short message from TE to network (SMS-SUBMIT).
Syntax
bg77.cmgs.set(da,toda,data)
Parameters
daString Destination address. 3GPP TS 23.040 TP-Destination-Address Address-Value field in string format. BCD numbers (or GSM 7 bit default alphabet characters) are converted to characters of the currently selected TE character set (refer to command AT+CSCS in 3GPP TS 27.007). The type of address is given by <toda>.
todaint Type of destination address. 3GPP TS 24.011 TP-Destination-Address Type-of-Address octet in integer format.
dataString text message
Returns
String response

◆ set() [3/3]

String set ( int  ,
String   
)
Description
This api sends a short message from TE to network (SMS-SUBMIT).
Syntax
bg77.cmgs.set(length,data)
Parameters
lengthint Integer type. Message length. In the text mode (AT+CMGF=1) the length of the text message in characters; or in PDU mode (AT+CMGF=0), the length of the actual TP data unit in octets (i.e. the RP layer SMSC address octets are not counted in the length).
dataString text message
Returns
String response