Topic RSS10:19, EET
April 17, 2013
OfflineHi,
If you have obtained the UaMethod object on the client side, you can get the DisplayName by calling
Alternatively, you can just simply read the DisplayName attribute provided that you know the NodeId of the method node
Let us know any further questions that you may have.
14:22, EET
June 28, 2016
OfflineHi Heikki,
first of all, many thanks for your reply.
I’m obtaining the UaMethod in that way: UaClient.getMethod(new QualifiedName(“My_Method_Name”)). Is there a better way to do that?
If I wanted instead to get the NodeId of the method, how should I do? I would have expected to find something like “UaClient.MyObject.MyMethod.getNodeId()”, but I can’t find it. Is there something like this?
Thanks again and many greetings.
Alessandro
15:04, EET
April 17, 2013
OfflineHi Alessandro,
As you have obtained the UaMethod, you can just call .getDisplayName() and receive the value of the DisplayName attribute. Similarly, you can call .getNodeId() if you want to obtain the NodeId of method node.
P.s. There’s no such method as UaClient.getMethod but I’m assuming you meant UaObject.getMethod.
1 Guest(s)

Log In
Register