what will i input in this code Serial.write("+639084527258"); to send message in 2 or 3 different numbers ? what will i add?
Come on give us a chance.
What hardware do you have.
What software are you running?
arduino software. i have a project !! sensing leak gas using mq2 sensor, but i want to have 3 mobile phone to receive the message alert. i already did 1 only. i want to do 3 mobile number but i dont know how?
Jinger:
what will i input in this code Serial.write("+639084527258"); to send message in 2 or 3 different numbers ? what will i add?
- The easy way. A case statement with a Serial.write in each one.
- The better way. An array containing the strings.
Sorry if that is the best you can do then no one can help you.
You went no way to answering my questions.
Serial.write("+639084527258");
Serial.write("+639755459480");
Serial.write("+639057663556");
LIKE THIS ONE?
I'm out.
Jinger:
Serial.write("+639084527258");
Serial.write("+639755459480");
Serial.write("+639057663556");LIKE THIS ONE?
What would happen if you dialed "+639084527258+639755459480+639057663556" on your phone?
it send alert sms to the 3 numbers.
Jinger:
it send alert sms to the 3 numbers.
No.
Jinger.
Suggest you take a look at the link below. I'm also a newbie but I know what you are provided for information and the little code you are providing is not help you or anyone else.
You need to send the message three times, once to each number.
Use a for() loop and use arrays to hold the numbers you wish to send the message to.