Well maybe I am luckier with this question:
I have this code that sends me a automatic predefind text via SMS when a SMS text is received but I want to receive the content of a variable which I can not succeed for some reason.
[code] if (LSMS.available()) // if received a SMS from another cellphone
sprintf(buffer, "Get new sms, content: %s, number: %s \r\n", buf_contex, num);
if (strcmp("GPS", (char*)buf_contex) == 0) // if the SMS content is 'GPS', then send the GPS information of RePhone back to the sender
//change var "buttonPushCounter" with "txt" to be automatically sent back when sms with GPS text is received
sprintf(buffer, "buttonPushCounter", buttonPushCounter = 0);
if (LSMS.endSMS()) Serial.println("SMS sent ok!");
else Serial.println("SMS send fail!");
else Serial.println("SMS no ready!");
The code is from Dog Collar example.
P.S. unbelievable, after more than 400 views nobody had any advice for my previous question