Read several attributes of a node list of DataValue is returned
(self, attrs)
| 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 | """ |
no test coverage detected