|Subject:||Device::Gsm fails to collect incoming SMSs|
In messages(), line 305, the code issues the "AT+CMGL=4" command to the modem. This happens to fail on my modem (for unclear reasons as yet). There is a safer, but slower, way to collect the messages. The command "AT+CPMS?", lists the number of messages in the message readout, write, and incoming memories. The "AT+CMGR=<index>" reads the <index>th message from readout memory; the message header has a status indicating new, old, unset or sent. Using this safer approach (if +CMGL returns ERROR) would allow my modem to work.