Replies: 2 comments
-
This is not a issue of the this library, so i converted it to discussion. You spawn too much parallel request to the server. The server will do each request one after the other and one request will timeout. Either you limit the parallel requests or use https://github.com/FreeOpcUa/opcua-asyncio/blob/8fc26b88c2f5f7730cf911999b94076beeca8272/asyncua/client/client.py#L899C11-L899C129 to query multiple reads together one by one |
Beta Was this translation helpful? Give feedback.
0 replies
-
Also you can select a longer timeout (seconds):
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, so I've written a python program that connects to an SPS 1200 OPC UA Server and browses the node structure.
I want to read some node attributes after browsing the complete node structure starting with the objects node.
I've tried using the asyncio taskgroups for that since this really speeds up the process but I ran into the problem where the connection to the server would get disconnected.
My code:
When I execute the code I get the following error:
When I iterate over each node and call the
_collect_node_data()
function it works fine but can take very long when gathering data from many nodes.Is there a better or an intended way of doing this kind of operation?
Beta Was this translation helpful? Give feedback.
All reactions