Waiting for a string within SERIN2
Hello,
While I am not an expert, I am confused by the line in your code that reads:
SerIn2 rxd,Baud,500,delet_sms,[wait ("+8801717101959")]
That command will wait for that string for 500 milliseconds, and if it is not received, it will jump to the label delet_sms.
What seems to be missing is the variable into which you want to stuff subsequent serial input that will follow "+8801717101959". Is that variable named phoneno?
Remember that the string you wait for is not the data part of the input, it is just a trigger to accept what follows and place it into a variable. If I have understood your intentions correctly, you want to gather some additional set of numbers and place them into a variable after receiving that quoted string "+8801717101959". If so, your syntax could be:
SERIN2 rxd,Baud,500,delet_sms,[wait ("+8801717101959"), phoneno]
Is this what you had intended?
Bob