saramah
Member level 3
hi,
I am using sim900a GSM MODEM and PIC 16F877A in XC8 at 20MHZ external.
I receiving the content in the following function from ,
All the command are working correctly..But now expecting to extract 2nd line only (ie, sms content) of the reply of the command "AT+CMGR=1", and which is as reply,
My question is how do i jump to 2nd line and extract content of only SMS, to get compare with the function like //
for further action
Thanks in advance.
tnx
I am using sim900a GSM MODEM and PIC 16F877A in XC8 at 20MHZ external.
I receiving the content in the following function from ,
Code:
char _SIM900_getch()
{
if(OERR) // check for Error
{
CREN = 0; //If error -> Reset
CREN = 1; //If error -> Reset
}
while(!RCIF); // hold the program till RX buffer is free
return RCREG; //receive the value and send it to main function
}
All the command are working correctly..But now expecting to extract 2nd line only (ie, sms content) of the reply of the command "AT+CMGR=1", and which is as reply,
Code:
+CMGR: "REC UNREAD" ,"+919844444444","10/10/14,14:29:33+04"
xxx123 (SMS CONTENT HERE IN THIS 2ND LINE)
Ok
My question is how do i jump to 2nd line and extract content of only SMS, to get compare with the function like //
Code:
if(strnicmp(content,"xxx123",6)==0)
Thanks in advance.
tnx