I' creating a SMS gateway from GSM Modem port. I need to verify if an SMS sending is failed or successful. So I think the ways to check failed or success is to check the message storage called outbox if success and failed to draft.
But, if I try to issue AT commands to check storage by index or to print the messages contained in all indexes, it returns nothing.
Response after sending a message:
+CMGS: 170
as I read we can read the message with AT+CMGR command
modem = serial.Serial('COM5', 9600, timeout=0)
modem.write(b'AT+CMGR=170\r')
while True:
print(modem.read(100))
input('Type to see response')
I tried also with the command AT+CMGR="ALL"
to print out anything in storage, but, no messages are printed out.