Variables | |
idx = server.register_namespace(uri) | |
mycustomobj_type = types.add_object_type(idx, "MyCustomObject") | |
myobj = objects.add_object(idx, "MyObject") | |
myobject1_type_nodeid = ua.NodeId.from_string('ns=1;i=1002') | |
myobject2_type_nodeid = server.get_root_node().get_child(["0:Types", "0:ObjectTypes", "0:BaseObjectType", "1:MyObjectType"]).nodeid | |
myobject3_type_nodeid = server.get_node(ua.ObjectIds.BaseObjectType).get_child(["1:MyObjectType"]).nodeid | |
object_type_to_derive_from | |
objects = server.get_objects_node() | |
server = Server() | |
types = server.get_node(ua.ObjectIds.BaseObjectType) | |
string | uri = "http://examples.freeopcua.github.io" |
Definition at line 23 of file server-custom-object.py.
Definition at line 41 of file server-custom-object.py.
Definition at line 30 of file server-custom-object.py.
server-custom-object.myobject1_type_nodeid = ua.NodeId.from_string('ns=1;i=1002') |
Definition at line 58 of file server-custom-object.py.
server-custom-object.myobject2_type_nodeid = server.get_root_node().get_child(["0:Types", "0:ObjectTypes", "0:BaseObjectType", "1:MyObjectType"]).nodeid |
Definition at line 59 of file server-custom-object.py.
server-custom-object.myobject3_type_nodeid = server.get_node(ua.ObjectIds.BaseObjectType).get_child(["1:MyObjectType"]).nodeid |
Definition at line 60 of file server-custom-object.py.
server-custom-object.object_type_to_derive_from |
Definition at line 38 of file server-custom-object.py.
server-custom-object.objects = server.get_objects_node() |
Definition at line 26 of file server-custom-object.py.
server-custom-object.server = Server() |
Definition at line 18 of file server-custom-object.py.
server-custom-object.types = server.get_node(ua.ObjectIds.BaseObjectType) |
Definition at line 36 of file server-custom-object.py.
string server-custom-object.uri = "http://examples.freeopcua.github.io" |
Definition at line 22 of file server-custom-object.py.