sanglehoang
New Member
I am having trouble in reading sms from the mobile. (I was able to send the sms)
This is my code:
I have read some threads about this problem in forum.If someone knows how to solve this problem, please help me!
I thank you in advance!
This is my code:
The result was nothing!UART1_Write_Text("AT+CMGR=1");
delay_ms(500);
UART1_Write(13);
delay_ms(500);
UART1_Write_Text("AT+CNMI=1,1,0,0,0");
delay_ms(500);
UART1_Write(13);
delay_ms(500);
UART1_Write_Text("AT+CMGR=1");
delay_ms(500);
while(UART1_Data_Ready() == 1);
UART1_Read_Text(ch,'OK', 10);
I have read some threads about this problem in forum.If someone knows how to solve this problem, please help me!
I thank you in advance!