gsm

how caan we send data when we click on a Microswitch using arduino
gsm code :

void setup()
{
Serial.begin(9600);
delay(5000);
}
void loop()
{
Serial.println("AT");
delay(1000);
Serial.println("AT+CMGF=1");
delay(1000);
Serial.println("AT+CMGS=\"1234567890\""); //CHANGE TO DESTINATION NUMBER
delay(1000);
Serial.print("hi");
Serial.write(26);
delay(1000);
}

what can i do to send data when i click on a Microswitch
pease send me its codes
please
pleaes …

please dont create multiple thread for same topic http://forum.arduino.cc/index.php?topic=409851.0

you can post the code in your previous thread itself.

@peyman180, you just finished a time-out for cross-posting. Your first act after the time-out is to cross-post.

Do you need help using the forum?