amitmanocha78
Newbie level 2
reading message +sim300
I'm trying to achieve following interaction using C program:
AT
OK
AT+CMGF=1
OK
AT+CMGL="ALL"
<all messages>
I'm able to receive all the messages using hyper terminal. When I do it using C program, I've to do multiple reads to read all the messages. After the last message, reading blocks because there is nothing more to read. What is the right way to read i.e how do I know - when to stop reading. Secondly, is there any event based mechanism for reading?
Thanks
Amit
I'm trying to achieve following interaction using C program:
AT
OK
AT+CMGF=1
OK
AT+CMGL="ALL"
<all messages>
I'm able to receive all the messages using hyper terminal. When I do it using C program, I've to do multiple reads to read all the messages. After the last message, reading blocks because there is nothing more to read. What is the right way to read i.e how do I know - when to stop reading. Secondly, is there any event based mechanism for reading?
Thanks
Amit