opcua-kit

OPC UA
for Rust.

Read a PLC, monitor a production line, or serve your own variables. Embed OPC UA directly in your Rust application.

cargo add opcua-kit --features client
Technical illustration of an articulated industrial robot arm
Example NodeIdnsu=urn:factory:line-1;s=AxisPosition

Choose a protocol role

Read a variable

Address a signal by namespace URI and identifier. Each sample carries the server’s status and the available timestamps alongside its value.

Set up the session
Rust · client.read_scalar
use opcua_kit::{NodeId, Sample};

let axis = NodeId::new(
    "urn:factory:line-1", "s=AxisPosition",
)?;
let sample: Sample<f64> =
    client.read_scalar(&axis).await?;