Hello,
I have an Arduino GSM shield. Now, the standard protocol for sending a text message to an external phone from the GSM shield is that you must enter the phone number to send a message to and the message on the serial monitor. I would like to cut all of that out and have it so that it has the phone number and message preloaded into the code. Heres the code I think it matters with:
Serial.print("Enter a mobile number: ");
char remoteNum[20]; // telephone number to send sms
readSerial(remoteNum);
Serial.println(remoteNum);
// sms text
Serial.print("Now, enter SMS content: ");
char txtMsg[200];
readSerial(txtMsg);
Serial.println("SENDING");
Serial.println();
Serial.println("Message:");
Serial.println(txtMsg);
// send the message
sms.beginSMS(remoteNum);
sms.print(txtMsg);
sms.endSMS();
Serial.println("\nCOMPLETE!\n");
I want to make it so that "remoteNum" and "txtMsg" are predefined.
Thanks, IA-BL