Method
An OPC UA Method node is an RPC interface exposed by the server. It is invoked by calling ua.call(...).
Subpage Redirect
- Complete method signature / Memory ownership / Finding methods—please NodeId refer to call.
- Alarm Acknowledge is also invoked call via a call; see Event Subscription.
One-Minute Example
from darra_opcua import OpcUaVariant
outputs = ua.call(
object_node_id="ns=2;s=Calculator",
method_node_id="ns=2;s=Calculator.Add",
inputs=[OpcUaVariant().set_int32(3), OpcUaVariant().set_int32(4)])
for v in outputs:
with v:
print(f"sum = {v.as_int32}")