Hey Guys,
i have a problem with my TC35 GSM shield, or rather with my code.
My Function sendsms() should send a SMS to a spezified phonenumber.
This works - but the code
sendsms("test1");
delay(2000);
sendsms("test3");
only sends the first sms message.
the code for the function sendsms() is
void sendsms(char nachricht){
gsm.print("AT+CMGS="");
gsm.print(handynummer);
gsm.println(""");
while(gsm.read() != '>');
{
gsm.print(nachricht);
delay(500);
gsm.write(0x1A);
gsm.write(0x0D);
gsm.write(0x0A);
delay(5000);
}
}
this sketch ive found in a youtube video.
please help me why always only one sms is send.
P.S please excuse my bad english im from germany and still learning english =)