© Microhard Systems Inc. 173
5.0 AT Commands
AT+MMGL
Command Syntax
This command allows the application to read stored
messages by indicating the type of the message to
read. The messages are read from the SIM card
memory. It is same as +CMGL, but the +MMGL
command does not change the message status.
AT+MMGL=<status>
Status:
0 - Lists all unread messages
1 - Lists all read messages
4 - Lists all messages
Description
Example
Input:
AT+MMGL=4 <enter>
Response:
+MMGL: 1,"REC UNREAD","+14035553776",,"2012/02/06,10:57:38-07"
This is another message
+MMGL: 0,"REC READ","+14035553776",,"2012/02/06,10:39:43-07"
This is the reply
OK
AT+CMGD
Command Syntax
This command handles deletion of a single message
from memory location <index>, or multiple
messages according to <delflag>.
AT+CMGD=<index>,<delflag>
delflag:
0 - Deletes the message specified in <index>
1 - Deletes all read messages
4 - Deletes all messages
Description
Example
Input:
AT+CMGD=0,4 <enter>
Response:
index=0 dflag=4
OK
The AT&W command
must be issued to save
changes!