MCPcopy Create free account
hub / github.com/FreeOpcUa/python-opcua / link_method

Method link_method

opcua/server/server.py:605–615  ·  view source on GitHub ↗

Link a python function to a UA method in the address space; required when a UA method has been imported to the address space via XML; the python executable must be linked manually Args: node: UA method node callback: python function that the UA method

(self, node, callback)

Source from the content-addressed store, hash-verified

603 self.iserver.unsubscribe_server_callback(event, handle)
604
605 def link_method(self, node, callback):
606 """
607 Link a python function to a UA method in the address space; required when a UA method has been imported
608 to the address space via XML; the python executable must be linked manually
609 Args:
610 node: UA method node
611 callback: python function that the UA method will call
612
613 Returns:
614 """
615 self.iserver.isession.add_method_callback(node.nodeid, callback)
616
617 def load_type_definitions(self, nodes=None):
618 """

Callers 1

__init__Method · 0.80

Calls 1

add_method_callbackMethod · 0.45

Tested by

no test coverage detected