17 cvb.opcua.Namespace0NodeID.OBJECTSFOLDER)
23 print(
"callback was triggered")
25 readCookie = node1.register_read_callback(callback)
28 server.add_node(node1)
30 input(
"Press Enter to stop\n")
32 node1.deregister_callback(readCookie)
36if __name__ ==
"__main__":
cvb.opcua.FloatNode create(int namespace_index, str name, cvb.opcua.NodeID parent_node_id, float value)
Creates an OPCUA variable with the specified parameter, data type, and its floating-point value.
Definition: __init__.py:222
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
cvb.opcua.Server create(int port)
Creates an OPCUA server with the specified port number.
Definition: __init__.py:527
Common Vision Blox OPCUA module for Python.
Definition: __init__.py:1