opcua-kit 0.2.0

Embeddable OPC UA client, server and UADP library for Rust applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
//! Downstream consumer of the Rust-only default crate.
use opcua_kit::{DiscoveryError, discover_endpoints, pubsub};
use std::time::Duration;

fn main() {
    assert!(matches!(
        discover_endpoints("http://localhost", Duration::from_secs(1)),
        Err(DiscoveryError::InvalidEndpoint)
    ));
    assert_eq!(pubsub::MAX_FIELDS, 64);
}