简体   繁体   中英

How can I on browsing Nodes with Milo OPCUA Client, chek the Datatyp

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服务并读取每个节点的DataTypeValueRankArrayDimensions属性。

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM