Download G600 GPRS Module AT Command User Manual
Transcript
SMS AT+CMGF=1 OK AT+CMGR=132 +CMGR: "STO UNSENT",18,0,0,0,"+972524680592",145,0 OK 7.1.18 +CMGD, Delete Message This command handles deletion of a single message from memory location <index>, or multiple messages according to <delflag>. If the optional parameter <delflag> is entered, and is greater than 0, the <index> parameter is practically ignored. If deletion fails, result code +CMS ERROR: <err> is returned. Note: The deletion of multiple commands is a time-consuming process that may require more than 60 seconds to complete. Command Set Syntax Response/Action +CMGD=< OK index>[,<d or: elflag>] +CMS Remarks ERROR: <err> Read The Read command for +CMGD is not defined by ETSI, and therefore is not supported by the G600. The G600 returns an error. Test +CMGD=? +CMGD: (list of valid<index>s), (list The Test command displays the supported values of <n>. of valid<deflag>s) The following table shows the +CMGD parameters. <Parameter> Description <index> 1-352 Index in the SMS memory of the message to be deleted. <delflag> 0 Deletes the message specified in <index> 1 Deletes all read messages 2 Deletes all read messages and sent MO messages 3 Deletes all read messages, sent and unsent MO messages 4 Deletes all messages Example: G600 GPRS Module AT Command User Manual Page 128 of 238