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
- For the node container entry point, see NodeCollection.
- For single-node wrapping, please refer to OpcUaNode.
- For single-level browsing, please see Browse.
- To continue reading, please see the next page. BrowseNext.
- For information on ContinuationPoint [...], please refer to BrowseWithPaging.
- For batch parsing of paths, please refer to TranslateBrowsePaths.
- For high-frequency access acceleration, please refer to RegisterNodes.
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
| Scenario | Recommendations |
|---|---|
| Known to be accurate NodeId (Production Code) | Method 1: String |
| Standard ns=0 Node | Method 2 + WellKnownNodes |
| Browse Tree / One-Time Script | Method 2: Indexer |
| Batch Initialization of 100+ Paths | translateBrowsePaths |
| Long-term operation with high-frequency access | registerNodes Accelerate |