Commit 2a959a9e authored by Christian Bergmiller's avatar Christian Bergmiller Committed by oroulet

fix Client.get_values (async)

parent 87f24d8d
......@@ -586,10 +586,10 @@ class Client:
node.nodeid = node.basenodeid
node.basenodeid = None
def get_values(self, nodes):
async def get_values(self, nodes):
"""
Read the value of multiple nodes in one roundtrip.
"""
nodes = [node.nodeid for node in nodes]
results = self.uaclient.get_attribute(nodes, ua.AttributeIds.Value)
results = await self.uaclient.get_attribute(nodes, ua.AttributeIds.Value)
return [result.Value.Value for result in results]
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment