I want to be able to send SMS to more than one phone number (stored in phonebook) at once but right now it's only sending to one of the numbers.
Can someone help?
I'm using Arduino Uno and Siemens TC35 GSM.
if (flag_sent == 0) //if error sms not yet sent
{
sendContent = "An error has been detected.";
for(int d = 0; d<index; d++)
{
str[d].toCharArray(entry, 20); //convert string to char
feedback(entry, sendContent);
//Serial.print("Sending to: ");
//Serial.println(entry);
delay(100);
}
flag_sent = 1;
}
PeterH:
Do you have some reason to think that it is possible? I would have thought you needed to send the SMS separately to each address.
Well, that is what I am trying to do using the for loop.
Send an sms to one number, and after it's done, send to the next number.
Right now, my idea is to wait for an "OK" from the gsmSerial before sending to the next number. Still having problems though.
hey guys, I know this has been dormant for a while but I am facing the same issue.
I have a number of things working for my home automation / alarm project, including control via SMS from an authorized (mobile) number.
The next part I am tackling is the notification of an alarm (someone broke into the house) to a list of recipients (e.g. in my case, the system can store up to 10 phone numbers in EEPROM).
I can send an SMS, one at a time (in essence a loop that goes through all of the listed & selected recipients) but it would be much cooler and more elegant if I could tell the modem (Siemens TC35 with developer board) at time of creation to be sent to multiple destinations. Kind of what you can do on your mobile when selecting multiple recipients for a single text ...
bellwsaadan:
Well, that is what I am trying to do using the for loop.
Send an sms to one number, and after it's done, send to the next number.
Right now, my idea is to wait for an "OK" from the gsmSerial before sending to the next number. Still having problems though.