Skip to main content

Nodes

ua.nodes It is a Lazy Load node accessor that allows you to access remote nodes just as you would local objects; at the same time, the OpcUaSession previous set of methods browse directly uses strings NodeId.

Subpage Redirect

Three Ways to Access Nodes​

// Method 1: Direct String NodeId Access (Simplest and Most Efficient RPC)
try (OpcUaDataValue dv = ua.read("ns=2;s=Temperature")) {
// ...
}

// Method 2: Lazy Load Indexer (like local objects, exploratory)
try (OpcUaDataValue dv = ua.nodes.get("ns=2;s=Temperature").getValue()) {
// ...
}
try (OpcUaDataValue t = ua.nodes.server().get("ServerStatus").get("CurrentTime").getValue()) {
// ...
}

// Method 3: Path Resolution
OpcUaNode node = ua.resolve("/Objects/Server/ServerStatus/CurrentTime");
try (OpcUaDataValue dv = node.getValue()) {
// ...
}

All three methods follow the same underlying process RPC; just choose the one that feels most natural to you.

Selection Guide​

ScenarioRecommendations
Known to be accurate NodeId (Production Code)Method 1: String
Standard ns=0 NodeMethod 2 + WellKnownNodes
Browse Tree / One-Time ScriptMethod 2: Indexer
Batch Initialization of 100+ PathstranslateBrowsePaths
Long-term operation with high-frequency accessregisterNodes Accelerate

Next Step​