
from attglobals import *
COM <H1> AT+CMGL Message List

COM Index of message
AT+CPMS="ME"
WAITFOR OK

COM Test command
AT+CMGL=?
WAITFOR OK


COM AT+CMGL Write command

for i in range (0,5):
	AT+CMGL=i
	WAITFOR OK
	WAIT 2000

COM Reset Preferred message storage to SIM
AT+CPMS="SM"
WAIT FOR OK

AT
WAIT FOR OK

