Rainbow Electronics MG260 User Manual

Page 77

Advertising
background image

FLYFOT-MG260-MODULE

Page: 77 / 246

This document is the sole and exclusive property of FLYFOT. Not to be distributed or divulged without
prior written agreement.

Example :
Command

Possible responses

+CMTI: .SM.,1
Note : New message received

AT+CMGR=1
Note : Read the message

+CMGR: 1,,24
0891683108100005F0040D91683185716393
F900005001429042802304B0182C06
OK

AT+CMGR=51
Note : Read at a wrong index

+CMS ERROR: 500
Note : Error : invalid index

AT+CMGR
AT+CMGR?
AT+CMGR=?

+CMS ERROR: 3
Note: not supported.

Defined values :

<stat> possible values (status of messages in memory) :

Text mode possible

values

PDU mode possible

values

Status of messages in memory

“REC UNREAD”

0

received unread messages

“REC READ”

1

received read messages

“STO UNSENT”

2

stored unsent messages

“STO SENT”

3

stored sent messages

“ALL”

4

all messages


<length> length of the TP data unit in octets.


9.8 List message +CMGL

Description :

This command allows the application to read stored messages, by indicating the type of the message to
read. The messages are read from the memory selected by the +CPMS command.

Syntax :

Command syntax : AT+CMGL=<stat>
Response syntax for PDU mode :
+CMGL : <index>,<stat>, [<alpha>], <length> <CR><LF> <pdu> (for SMSDELIVER, SMS-SUBMIT

Advertising