Receive SMS example

ATE1 --> Set echo ON
AT+CMGF=1 --> Establishes text mode in modem
AT+CMGL="REC UNREAD",1 --> Checks if exists unread SMS. Return OK if not exist any SMS, in other case returns a list with them (the first number of each of them are the index of each of them).
AT+CMGR=[sms_index],0 --> Read SMS with index sms_index from modem memory (ej: AT+CMGR=1,0).
AT+CMGD=[sms_index] --> Delete SMS with index sms_index from modem memory (ej: AT+CMGD=1).

I'm not sure if I understood what to do with these commands guys.

After I executed the given code, all I got was:


Starting modem communication...OK
Introduce your AT commands:


Nothing else occurred after I had texted the SIM card number either.

Thanks for the help guys - You guys are my lifeline right now!