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

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