FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
464 views 1 comments
by anonymous
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 anonymous

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 anonymous
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