tutorial_server_method.rst 729 B

1234567891011121314151617181920212223
  1. Adding a server-side method
  2. ---------------------------
  3. This tutorial demonstrates how to add method nodes to the server. Use an UA
  4. client, e.g., UaExpert to call the method (right-click on the method node ->
  5. call).
  6. The first example shows how to define input and output arguments (lines 72 - 88),
  7. make the method executable (lines 94,95), add the method node (line 96-101)
  8. with a specified method callback (lines 10 - 24).
  9. The second example shows that a method can also be applied on an array
  10. as input argument and output argument.
  11. The last example presents a way to bind a new method callback to an already
  12. instantiated method node.
  13. .. literalinclude:: server_method.c
  14. :language: c
  15. :linenos:
  16. :lines: 4,5,14,16-