7950 questions

9403 answers

15102 comments

12979 members

0 votes
47 views 0 comments
by
Hi,

In our application we want to monitor the mobile parameters we can read with the gsmctl command. We use a RUT240 router. We want to do this every couple of seconds 24/7. This will be done using REST calls and JSON-RPC windows.

In the documentation it states that the session lifetime is 300 seconds. (https://wiki.teltonika-networks.com/view/RUT900_Monitoring_via_JSON-RPC_windows). Because we want to monitor the values 24/7, we will need to login a lot. Is there a way to increase the session lifespan?

Thanks in advance!

1 Answer

0 votes
by

Hello,

In order to increase the JSON-RPC lifespan you can do it this way:

{
    "jsonrpc""2.0""id"1"method""call""params"
    [
        "00000000000000000000000000000000""session""login",
        {
            "username""root""password""Admin123""timeout":9999
        }
    ]
}
I hope it helps.
 
Regards,
Mellow