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

Method get_attributes

opcua/common/node.py:279–292  ·  view source on GitHub ↗

Read several attributes of a node list of DataValue is returned

(self, attrs)

Source from the content-addressed store, hash-verified

277 return result[0]
278
279 def get_attributes(self, attrs):
280 """
281 Read several attributes of a node
282 list of DataValue is returned
283 """
284 params = ua.ReadParameters()
285 for attr in attrs:
286 rv = ua.ReadValueId()
287 rv.NodeId = self.nodeid
288 rv.AttributeId = attr
289 params.NodesToRead.append(rv)
290
291 results = self.server.read(params)
292 return results
293
294 def get_children(self, refs=ua.ObjectIds.HierarchicalReferences, nodeclassmask=ua.NodeClass.Unspecified):
295 """

Callers 3

_lsprint_longFunction · 0.45
_rdesc_from_nodeFunction · 0.45
_read_and_copy_attrsFunction · 0.45

Calls 1

readMethod · 0.45

Tested by

no test coverage detected