Im browsing with Milo OPCUA Client the Nodes:
//get my baseNodes
List<ReferenceDescription> references = toList(browseResult.getReferences());
for (ReferenceDescription rd : references) {
//check all nodes under Basenodes
rd.getNodeId().local().ifPresent(nodeId -> browseNode(indent + " ", client, nodeId));
if ((rd.getNodeClass().getValue() == 2)){
referencesChilds.add(rd);
}
}
I would like hier to check this Variable, if it ist an Array, then add to my referencesChilds List.
if ((rd.getNodeClass().getValue() == 2)){
referencesChilds.add(rd);
}
How can i do it, any Idea, the ReferenceDescription Object have no Method to check the Datatype.
浏览后的下一步通常是调用Read服务并读取每个节点的DataType
, ValueRank
和ArrayDimensions
属性。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.