dOPC Client Toolkit
Close
ua.client.TdOPCUAClient.MethodGetParent

Get the Parent ObjectNodeId of a OPC UA method.

function MethodGetParent(MethodId: string): string;
__fastcall AnsiString MethodGetParent(AnsiString MethodId);

If you want to call a method from a OPC UA server you have to enter a ObjectId and a MethodId. 

If the parent is an Object, you can use this method to get the ObjectId for the MethodId.

ObjectNodeId := MethodGetParent('ns=2;s=Demo.Method.MultiplyMethodId') // result is 'ns=2;s=Demo.Method'
Kassl GmbH Copyright © 2024. All rights reserved.