WM620 AT
Command Manual
Copyright © Neoway Technology Co., Ltd
57
5.7 SMS Message List: +CMGL
Description
To read SMS messages of one type from the current memory specified by the
+CPMS
command
Format
AT+CMGL=<stat><CR>
AT+CMGL=?<CR>
Parameter
<state>: String type or numeric type
When you set
AT+CMGF=1
,
"REC UNREAD": Unread SMS messages received
"REC UNREAD": Read SMS messages received
"STO UNSENT": Stored unsent SMS messages
"STO SENT": Stored sent SMS messages
"ALL": All SMS messages
When you set
AT+CMGF=0
,
0: Unread SMS messages received
1: Read SMS messages received
2: Stored unsent SMS messages
3: Stored sent SMS messages
4: All SMS messages
Return Value
If text mode (+CMGF=1)
1) command successful and SMS-SUBMITs and/or
SMS-DELIVERs:
+CMGL:
<index>,<stat>,<oa/da>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data>[<CR><LF>
+CMGL:
<index>,<stat>,<da/oa>,[<alpha>],[<scts>][,<tooa/toda>,<length>]<CR><LF>
<data>[...]]
2) commandsuccessful and SMS-STATUS-REPORTs:
+CMGL: <index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>
[<CR><LF>
+CMGL:<index>,<stat>,<fo>,<mr>,[<ra>],[<tora>],<scts>,<dt>,<st>[...]]
3) command successful and SMS-COMMANDs:
+CMGL: <index>,<stat>,<fo>,<ct>[<CR><LF>
+CMGL: <index>,<stat>,<fo>,<ct>[...]]