Problem sending multiple SMS

Hello,

I am using the GSM-shield (+leonardo) for sending and recieving SMS messages.
The first SMS I send with my code works perfect, aufter that SMS my board does NOT send any SMS-Messages any more.
The return value of the endSMS-Function is always 0, which means that action is still working.
Can anyone give me a hint where's my bug? :grin:

void sendSMS(char nr[30], char msg[200])
{
sms.beginSMS(nr);
sms.print(msg);
sms.endSMS();
delay(10000);
sms.flush();
}

Reveiving SMS messages is working without problem! :~

Thanks for a short advice!
Best regards
Michael

Hi,

Your method in my shield works perfectly. We can send 2 or more SMS.
Even so, sms.flush() is not necessary, so this function is to delete SMS received saved in memory.