| 475 | return Node(self.server, result.Targets[0].TargetId) |
| 476 | |
| 477 | def _make_relative_path(self, path): |
| 478 | rpath = ua.RelativePath() |
| 479 | for item in path: |
| 480 | el = ua.RelativePathElement() |
| 481 | el.ReferenceTypeId = ua.TwoByteNodeId(ua.ObjectIds.HierarchicalReferences) |
| 482 | el.IsInverse = False |
| 483 | el.IncludeSubtypes = True |
| 484 | if isinstance(item, ua.QualifiedName): |
| 485 | el.TargetName = item |
| 486 | else: |
| 487 | el.TargetName = ua.QualifiedName.from_string(item) |
| 488 | rpath.Elements.append(el) |
| 489 | return rpath |
| 490 | |
| 491 | def read_raw_history(self, starttime=None, endtime=None, numvalues=0): |
| 492 | """ |