REST DATA INTERFACE
Dear Sir,
One Of Our Customer is using REST Data Interface to read and write data to/from PLCNext.
He is able to do so.
Now he has a query for session timeout?
As per our Online Documentation I think it will be inside response
And Its description says
The resulting timeout value in milliseconds for the session (e.g. "5000").
It represents the poll rate at which the station promises to send session-based requests in order to avoid a session timeout.
Please guide.
Does it mean Timeout is 5seconds and Customer has to send Get request to avoid Timeouts.
Request
This GET command lists the active sessions on the web server.
GET https://%plcaddress%
Regards
Chetan
Comments
Customer Query :
What is the log-in session timeout for the API? Once logged in, for how long could we get a response from our requests?
Hi Chetan,
if you create a session (which we recommend) you can define the %SessionTimeout%.
During this period you've to call the server with the reference of the session, otherwise the session will be timed out.
This could be done by maybe calling a variable (maybe GET https://plc/_pxc_api/api/variables?>) or by maintaining just the session (POST https://plc/_pxc_api/api/sessions/1234567890>).
Hope that helped,
Frank