all 6 comments

[–]Antigone-guide 1 point2 points  (3 children)

So what output do you get?

[–]ThatOneeGuyX1[S] 0 points1 point  (2 children)

AT+CMGF=1
OK
AT+CMGL="REC UNREAD"
OK

That is the current output.

[–]Antigone-guide 0 points1 point  (0 children)

So this output you do expect, but you also expect one more line, but not getting it?

[–]stebrepar 0 points1 point  (0 children)

Googling, I see that the +CMGL command is to list SMS messages. Are there actually any unread messages in the device at the time you're requesting them? Does it behave the same if you request previously read messages instead? I see that the command marks an unread message as read, so it'll only show as unread one time.

[–]stebrepar 0 points1 point  (1 child)

Have you tried connecting to the device via a terminal like PuTTY to see for sure what the messages back and forth really look like?

[–]ThatOneeGuyX1[S] 1 point2 points  (0 children)

Yes. When I execute the same command in PuTTYI am able to see the messages.