How to use the node-opcua-service-translate-browse-path.BrowsePath function in node-opcua-service-translate-browse-path

To help you get started, we’ve selected a few node-opcua-service-translate-browse-path examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github node-opcua / node-opcua / packages / node-opcua-client / source / client_utils.ts View on Github external
function browsePathPropertyRequest(nodeId: NodeIdLike, propertyName: string): BrowsePath {

    return new BrowsePath({
        relativePath: /* RelativePath   */  {
            elements: /* RelativePathElement */ [
                {
                    includeSubtypes: false,
                    isInverse: false,
                    referenceTypeId: hasPropertyRefId,
                    targetName: {namespaceIndex: 0, name: propertyName}
                }
            ]
        },
        startingNode: /* NodeId  */ nodeId,
    });

}