Commit 63ac4499 authored by Andrew's avatar Andrew Committed by ORD

Add link_method to server (#313)

* Add link_method to server

shortcut to linking python functions to UA Method nodes, for example
after instantiating an object from object type which has a method.

* Use better path to session
parent 8941cc29
......@@ -426,3 +426,6 @@ class Server(object):
def unsubscribe_server_callback(self, event, handle):
self.iserver.unsubscribe_server_callback(event, handle)
def link_method(self, node, callback):
self.iserver.isession.add_method_callback(node.nodeid, callback)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment