FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14223 questions

16879 answers

27758 comments

54396 members

0 votes
436 views 1 comments
by
Hello,
I am using http://RUTX11_IP/cgi-bin/sms_read?username=user&password=pass&number=x
and I need to read only the last new message, it is possible?

Thanks

Andrea

1 Answer

0 votes
by

Hi,

To read only one SMS you need to define the SMS index in Post/Get string.
If the you know the index of the last SMS, then you can read it using your mentioned string.
With string  http://192.168.1.1/cgi-bin/sms_list?username=user1&password=user_pass you can see all the SMS and their indexes.
As written in wiki, you can only define the index number, but not request specifically for last or first SMS.

by
Thank you.
I am asking because I didn't find any other option to read only the last message.
To do that I setup "Leave free space - 19 on 20" so I have only one message in list.
I am using to execute command from sms by separated service.

Andrea