Skip to content

Restoring a subscription after the server connection is lost #1534

Answered by schroeder-
shayakhmetovi asked this question in Q&A
Discussion options

You must be logged in to vote

Switch to asyncua first.
Then you can used a modified https://github.com/FreeOpcUa/opcua-asyncio/blob/master/examples/client-reconnect.py.

If you add/remove nodes on demand, you have to remember the subscribed nodes your self, for example make a list or dict and store all subscribed nodes. When you reconnect you subscribe to all nodes in this list.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shayakhmetovi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants