For the last two days I have been working on sending SMS to multiple recipients through AT commands.
I have been modifying the code that I attached to this post.
Last night I got to know from the link I address here, SMS Tutorial: Sending SMS Messages from a Computer/PC Using AT Commands (AT+CMGS, AT+CMSS) that we ought to use the AT+CMSS in order to send multiple sms.
And that it sends message from the sms storage area in sim.I tried through this way........
pavankumar:
For the last two days I have been working on sending SMS to multiple recipients through AT commands.
I have been modifying the code that I attached to this post.
Last night I got to know from the link I address here, SMS Tutorial: Sending SMS Messages from a Computer/PC Using AT Commands (AT+CMGS, AT+CMSS) that we ought to use the AT+CMSS in order to send multiple sms.
And that it sends message from the sms storage area in sim.I tried through this way........
void sendSMS1() //you have to create this for each of the sendSMS* functions.
{
for(int i=0;i<=5;i++){
Serial.println("enter for loop");
gsm.print("AT+CMGF=1");
delay(80);
gsm.println("AT + CMGS = "number1"); // for sendSMS2, use the corresponding number, so also for the remaining from 3 to 5.
delay(80);
gsm.println(str);
delay(80);
gsm.println((char)26);
delay(80);
Serial.print("sending message to");
Serial.println(num*); *
gsmpower(); *
i++; *
}* } Admittedly, there might be faster and more efficient ways, but this method works...and that is the bottom line. Enjoy coding.
gsm.print("AT+CMGF=1\r");
delay(100);
gsm.println("AT + CMSS=3,"""); //why dont you try to put a delay between the different receiver
delay(100);
gsm.println("AT + CMSS=3,"**"");
delay(100);
gsm.println("AT + CMSS=3,"**********"");
delay(100);
gsm.println((char)26);
delay(100);
gsm.println();
delay(5000);
gsmpower();