Yes My Problem is upon code is working fine for sending sms for 1 (one) number but my Requirement is to send multiple sms at onece with different sms body for example see below
1st Number 0711034141 need to send "Prime" to this number
2nd Number 0706034141 need to send "Coil" to this number
Can you please edit this code and help me out here!
//Send new SMS command and message number
serialSIM800.write("AT+CMGS="0711034141"\r\n");
delay(500);
serialSIM800.write("AT+CMGS="0706034141"\r\n");
delay(1000);
//Send new SMS command and message number
serialSIM800.write("AT+CMGS="0711034141"\r\n");
delay(500);
serialSIM800.write("AT+CMGS="0706034141"\r\n");
delay(1000);
//Send new SMS command and message number
serialSIM800.write("AT+CMGS="0711034141"\r\n");
delay(1000);
//Send SMS content
serialSIM800.write("Prime");
delay(1000);
//Send new SMS command and message number
serialSIM800.write("AT+CMGS="0706034141"\r\n");
delay(1000);
//Send SMS content
serialSIM800.write("Coil");
delay(1000);
//Send new SMS command and message number
serialSIM800.write("AT+CMGS="0711034141"\r\n");
delay(1000);
//Send SMS content
serialSIM800.write("Prime");
delay(1000);
//Send Ctrl+Z / ESC to denote SMS message is complete
serialSIM800.write((char)26);
delay(1000);
//Send new SMS command and message number
serialSIM800.write("AT+CMGS="0706034141"\r\n");
delay(1000);
//Send SMS content
serialSIM800.write("Coil");
delay(1000);
//Send Ctrl+Z / ESC to denote SMS message is complete
serialSIM800.write((char)26);
delay(1000);
compare your sketch with post #8. Do you see the difference?
What commands have to be used for sending one SMS and did you really use all of them in your sketch for the second SMS?
Generally speaking:
Before changing any program make sure that you understand every line and command in the original.
Don't make too big steps. Start with the blink example, understand it, change it (fast/ slow blinking, morsing ...) instead of starting with sending a SMS