Replies: 1 comment 3 replies
-
|
If the Server went off the Session is gone there is no persistent Session! that sounds like the FindServers and FindServersOnNetwork discovery part? |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm new to using OPC-UA technology and I am interested in how to make a persistent connection.
I have a client, that subscribes on some server and retrieve some data from that - after that it stores the data in DB. I want to do that even if Server was turned off for some time, but it doesn't.
As I understood, Client.connect(url) call create_session method that uses KeepAlive class for renewing secure_channel in a new thread. But as I did not expect any socket Error can stop KeepAlive thread execution:
client.py:
So secure_channel will be lost, and data will never be retrieved for this client anymore. What should I do?
How to know that client has disconnected? How should I restart it properly? Is there a better way to handle such a situation?
To clarify my intentions:
I want to have a running Server instance, that has method "add_client(ip)" - after that client instance is created and subscribed on the other (PLC local) Server nodes change.(I want to have different clients for different PLC OPC-UA servers)
This client instance makes it possible to store the data in the DB. It is obvious that PLC Server may experience some problems such as rebooting, lack of internet, e.t.c. But after these problems solved I want to receive data anyway.
Beta Was this translation helpful? Give feedback.
All reactions