A6lib
A6lib copied to clipboard
Set max value of maxItems by calling the command AT+CMGD=?
In the example maxItems is defined to 50, it could be better to set it at startup level of the object when using the sim card memory following the result of AT+CMGD=?
Example of return from my module:
+CMGD=?
+CMGD: (1-50),(0,1,2,3,4)
OK
Mainly due to the fact that this value is proper to the sim card
Infos there: http://www.developershome.com/sms/cmgdCommand.asp
Should it be at startup, or right before running any SMS code? We might want to remove the maxItems argument altogether, seems to me? Or, at least, provide the user with a command to get that, so they don't have to run it over and over.
you are right it is strongly related to sms functions , maybe something like init SMS with the storages as parameters?
Hmm, which storages do you mean?
storage of SMS, SM, ME..; http://www.developershome.com/sms/cpmsCommand.asp