Method
An OPC UA Method node is an RPC interface exposed by the server. It is invoked by calling Session::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
use darra_opcua::Variant;
let mut a = Variant::new(); a.set_i32(3);
let mut b = Variant::new(); b.set_i32(4);
let outputs = s.call(
"ns=2;s=Calculator",
"ns=2;s=Calculator.Add",
&[a, b],
)?;
for v in &outputs {
println!("sum = {}", v.try_get_i32().unwrap_or(0));
}
outputs: Vec<Variant> — Each element implements this Drop; native is automatically released when it goes out of scope.