futurehelperforcodes:
what blue wire are you talking about ?
That was humor because you ask a question totally without giving us context to answer.
Please fix your previous post and add the [ code ] tag around the code so that it's easier to read.also press CTRL-T in the IDE before copying the code so that is indented properly.
To your pb:
Why are you kinda trying to declare the SendTextMessage in the middle of the loop? And probably added a semicolumn at the end because the compiler was complaining?? Does this make sense to you?
void SendTextMessage();
{
mySerial.println("AT+CMGF=1"); //to print number in text mode
delay(1000); //in miliseconds
mySerial.println("AT+CMGS=\"+919717889680\"\r"); //for the number to which the message has to be sent
delay(1000); //in miliseconds
mySerial.println("The current location is:"); //the message to be sent
delay(1000); //the delay in miliseconds
}
Besides Your problem is that you are using a myserial variable that has never been declared. You did not copy very well the example most likely...