Hi, this is my firt time here in the forum, i'm havin' some troubles with this code:
this one works really fine..but the problem cames when i try to send a variable instead of the number:
SIM900.println("AT+CMGS=\"" + Tel_sender + "\"");
Tel_sender is a variable i get doing this (when i receive an sms):
int pos = message.indexOf("+CMT: "); Tel_sender = message.substring(pos+7,pos+20);
with the code above i get the number sender and store it in the variable Tel_sender...
(i'm not sure about if it is a char or String or whatever...maybe this is a problem too)
then with the rest of the code i try to send it but no luck..
this is the monitor print:
+CMT: "+XXxxxxxxxxx8","","19/02/07,10:58:23-12" Er1 SMS sent AT+CMGF=1 AT+CMGS="+XXxxxxxxxxx8" OK
but nothing happend in my phone..