Replies: 1 comment 2 replies
-
|
@ryangu18 yes sure! for simple use cases this works robust: |
Beta Was this translation helpful? Give feedback.
2 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.
-
I use the client code to connect to the opc ua server and read the data, but when the network is not good, the connection will be interrupted, resulting in abnormal data reading
I modified the code and added the reconnect command, which looks good, but I found that it can cause the number of connections ( i=2277, "CurrentSessionCount") to the server to rise rapidly (especially when the network is interrupted frequently)
Is there a way to reconnect to the server without adding connections?
Or clear invalid connections before connecting? I don't know if this is a function of Client, I tried using client.disconnect()
But it doesn't work, it doesn't close the connection, or reduce the connection, because the network was outage, this client.disconnect() command is invalid.
thank you first
Beta Was this translation helpful? Give feedback.
All reactions