A6lib icon indicating copy to clipboard operation
A6lib copied to clipboard

Set max value of maxItems by calling the command AT+CMGD=?

Open 1technophile opened this issue 7 years ago • 4 comments

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

1technophile avatar Feb 15 '18 21:02 1technophile

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.

skorokithakis avatar Feb 15 '18 21:02 skorokithakis

you are right it is strongly related to sms functions , maybe something like init SMS with the storages as parameters?

1technophile avatar Feb 15 '18 21:02 1technophile

Hmm, which storages do you mean?

skorokithakis avatar Feb 15 '18 21:02 skorokithakis

storage of SMS, SM, ME..; http://www.developershome.com/sms/cpmsCommand.asp

1technophile avatar Feb 15 '18 21:02 1technophile