Anyone know how to save received sms ?
Here's the code in receiving sms:
mySerial.println("AT+CNMI=2,2,0,0,0");
What I want to do is when the message is received I want to store it in a variable so that I can pass it in other application software like vb.net.
I hope someone can answer.
No, that is NOT the code that receives an SMS. That code sends a command to the (stupidly named) mySerial instance, possibly telling it that you want it to return an SMS.
What you do with the output from the device is what actually receives the SMS.