6def make_browse_filter():
8 bd = cvb.opcua.ReferenceDirection.Forward
9 relationship = cvb.opcua.ReferenceType.Hierarchical
12 allow_subtype = cvb.opcua.BrowseSubType.SubTypesIncluded
28 cvb.opcua.Namespace0NodeID.OBJECTSFOLDER)
29 obj_folder_node = client.node(obj_folder)
32 browse_result = obj_folder_node.browse(make_browse_filter())
35 for nid
in browse_result:
36 tmp = client.node(nid)
37 print(
"found node: '" + tmp.display_name +
"'")
40if __name__ ==
"__main__":
cvb.opcua.BrowseFilter create(int direction, int reference_type, int max_references, int include_sub_types, int node_class_mask)
Creates a BrowseFilter object for browsing the OPCUA client.
Definition: __init__.py:114
cvb.opcua.Client create(str discover_url)
Creates an OPCUA client object.
Definition: __init__.py:160
cvb.opcua.NodeID create_namespace0(int namespace0_node_id)
Creates an OPCUA node ID based on a pre-defined namespace 0 value.
Definition: __init__.py:439
Common Vision Blox OPCUA module for Python.
Definition: __init__.py:1