[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [milo-dev] Where can milo users discuss their problems?
|
I want to get the NodeId for this path string "MCP/testbed2/drehzahl".
"MCP and "testbed2" are ObjectNodes and "drehzahl" is a VariableNode, (
Those strings are their browse name).
This is my current code:
private static RelativePath convertToRelativePath( OpcUaClient
client, String relativeUrl )
throws InterruptedException, ExecutionException {
String urlParts[] = relativeUrl.split( "/" );
ArrayList<RelativePathElement> pathElements= new ArrayList<>();
for( int i = 0; i < urlParts.length; i++ ) {
pathElements.add( new RelativePathElement(
Identifiers.HierarchicalReferences, false, true,
new QualifiedName( 2, urlParts[ i ] ) ) );
}
RelativePathElement[] pathElementsArray =pathElements.toArray(
new RelativePathElement[ pathElements.size() ] );
RelativePath rp = new RelativePath( pathElementsArray );
return rp;
}
Am 09.05.2019 um 14:52 schrieb Kevin Herron:
Titus,
This is the right place
Thanks!