1
votes

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.

1

1 Answers

0
votes

The next step after browsing is typically to call the Read service and read the DataType, ValueRank, and ArrayDimensions attributes for each node.