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

Public Member Functions

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

Member Function Documentation

◆ set() [1/8]

String set ( int  ,
String   
)
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.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

◆ set() [2/8]

String set ( int  ,
int  ,
String   
)
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.set(length,stat,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).
statint/String Integer type in PDU mode, or string type in text mode. The status of message in memory; Defined values: PDU mode Text mode Explanation
0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages
2 "STO UNSENT" Stored unsent messages
3 "STO SENT" Stored sent messages
4 "ALL" All messages
dataString text message
Returns
String response

◆ set() [3/8]

String set ( int  ,
String  ,
String   
)
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.set(length,stat,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).
statint/String Integer type in PDU mode, or string type in text mode. The status of message in memory; Defined values: PDU mode Text mode Explanation
0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages
2 "STO UNSENT" Stored unsent messages
3 "STO SENT" Stored sent messages
4 "ALL" All messages
dataString text message
Returns
String response

◆ set() [4/8]

String set ( String  )
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.set(data)
Parameters
dataString text message
Returns
String response

◆ set() [5/8]

String set ( String  ,
String   
)
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.set(oa/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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <toda>.
oaString Originating address. 3GPP TS 23.040 TP-Originating-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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <tooa>.
dataString text message
Returns
String response

◆ set() [6/8]

String set ( String  ,
int  ,
String   
)
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.set(oa/da,tooa/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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <toda>.
oaString Originating address. 3GPP TS 23.040 TP-Originating-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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <tooa>.
tooaint Type of originating address. 3GPP TS 24.011 TP-Originating-Address Type-of-Address octet in integer format (default refer to <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() [7/8]

String set ( String  ,
int  ,
int  ,
String   
)
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.set(oa/da,tooa/toda,stat,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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <toda>.
oaString Originating address. 3GPP TS 23.040 TP-Originating-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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <tooa>.
tooaint Type of originating address. 3GPP TS 24.011 TP-Originating-Address Type-of-Address octet in integer format (default refer to <toda>).
todaint Type of destination address. 3GPP TS 24.011 TP-Destination-Address Type-of-Address octet in integer format.
statint/String Integer type in PDU mode, or string type in text mode. The status of message in memory; Defined values: PDU mode Text mode Explanation
0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages
2 "STO UNSENT" Stored unsent messages
3 "STO SENT" Stored sent messages
4 "ALL" All messages
dataString text message
Returns
String response

◆ set() [8/8]

String set ( String  ,
int  ,
String  ,
String   
)
Description
This api stores short messages (either SMS-DELIVER or SMS-SUBMIT) to memory storage <mem2> (refer to AT+CPMS for details), and then the memory location <index> of the stored message is returned.
Syntax
bg77.cmgw.set(oa/da,tooa/toda,stat,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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <toda>.
oaString Originating address. 3GPP TS 23.040 TP-Originating-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 AT+CSCS command in 3GPP TS 27.007). The type of address is given by <tooa>.
tooaint Type of originating address. 3GPP TS 24.011 TP-Originating-Address Type-of-Address octet in integer format (default refer to <toda>).
todaint Type of destination address. 3GPP TS 24.011 TP-Destination-Address Type-of-Address octet in integer format.
statint/String Integer type in PDU mode, or string type in text mode. The status of message in memory; Defined values: PDU mode Text mode Explanation
0 "REC UNREAD" Received unread messages
1 "REC READ" Received read messages
2 "STO UNSENT" Stored unsent messages
3 "STO SENT" Stored sent messages
4 "ALL" All messages
dataString text message
Returns
String response