Code:
SerOut2 txd,Baud,["at+cmgr=5",13]
SerIn2 rxd,Baud,500,delet_sms,[wait ("+8801717101959")]

I just read sms memory index 5, and check the sender no by waiting the phone no [wait ("+8801717101959")]. Its a authorized phone no. If the sender phone no don't match then I delete it. If match then i know what to do.(Tested)

I always read and delete index 5. So any new sms first arrive in index 5.


My problem is, the authorized phone no saved in EEprom. And its may change time to time. So I need to wait for a string type array.

I have tried with that . But compiler show error this line
Code:
SerIn2 rxd,Baud,500,delet_sms,[wait("#str phoneno\14"),skip 32,str inbox\8]