MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / set_values

Method set_values

opcua/client/client.py:666–674  ·  view source on GitHub ↗

Write values to multiple nodes in one ua call

(self, nodes, values)

Source from the content-addressed store, hash-verified

664 return [result.Value.Value for result in results]
665
666 def set_values(self, nodes, values):
667 """
668 Write values to multiple nodes in one ua call
669 """
670 nodeids = [node.nodeid for node in nodes]
671 dvs = [ua_utils.value_to_datavalue(val) for val in values]
672 results = self.uaclient.set_attributes(nodeids, dvs, ua.AttributeIds.Value)
673 for result in results:
674 result.check()
675

Callers 1

Calls 2

set_attributesMethod · 0.80
checkMethod · 0.80

Tested by 1