Hi,
I have a question about reading an SMS message using AT commands. I would like to know how to handle SMS messages containing OK or ERROR, because that sgnifies the end of the command response, eg.
AT+CMGR=3
+CMGR: "REC READ","+85291234567",,"07/04/20,10:08:02+32",145,4,0,0,"+85290000000",145,49
It is easy to read text messages via AT commands.
OK
Now what if the message contains OK/Error?
AT+CMGR=3
+CMGR: "REC READ","+85291234567",,"07/04/20,10:08:02+32",145,4,0,0,"+85290000000",145,49
It is easy to trick the parser
OK.
Message continues here
OK <- proper termination
Any ideas?