help needed on how to process incoming sms msg?

starzstone used Ask the Experts™

i used java program to write the sms command "AT+CMGL=\"REC UNREAD\"\r" to list out the unread msg.

this is the response i get:

+CMGL: 2;"REC UNREAD", "91234567",,"02/11/19,00:12:13+32"

how can i read and process the msg "testing" and stored it to a string? thanks!
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Hi starzstome,

use AT+CMGR=2 to retrieve the message, then parse it. Me too, I'm currently writing a program to send and receive SMS messages. Receiving is not yet implemented, though... If you're interested:

Hope that helps

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial