Opc UA client node session disconnects with Server after few minutes

After connecting with the server, it disconnects automatically if press deploy after few minutes. The connection is properly established.

Im trying to fetch the data from a Siemens IOT connector which is connected to the plc S7.
The connection is lost everytime I deploy.
The error mentioned are :

1 - Error: BadSessionIdInvalid (0x80250000)
2 - Client disconnected & closed: connection error error: Error: BadIdentityTokenInvalid (0x80200000)

After this error i retype the credentials in OPC UA client node and deploy again it connects again.
Im using chrome server.

Please let me know how can i fetch continuous data for over a long time without getting disconnected.
@ [Colin] @ [knolleary] @ [dceejay] @ [TotallyInformation]

Keepalive should ensure that session is not closed.
Another way is to use some "dummy" variable that is updated as watchdog with interval that is smaller than timeout. This will keep session active & alive.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.