How to read a ExpandedNode data?|OPC UA Implementation: Stacks, Tools, and Samples|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
How to read a ExpandedNode data?
Avatar
Levon He
New Member
Members
Forum Posts: 2
Member Since:
07/27/2016
sp_UserOfflineSmall Offline
1
08/14/2016 - 23:27
sp_Permalink sp_Print sp_EditHistory

I use SessionChannel.browse() get a ReferenceDescription object.ReferenceDescription object's NodeId is instance of ExpandedNodeId.What print is:

 [3]=ReferenceDescription
      ReferenceTypeId=i=0
      IsForward=false
      NodeId=ns=2;s=0:Assets
      BrowseName=null
      DisplayName=null
      NodeClass=NodeClass
        value=0
        name=Unspecified
        ordinal=0
      TypeDefinition=i=0

so,I need to read the Assets node data,how can i get it?

Is there has any way to convert ExpandedNodeId to NodeId?

The lib i use is UA-Java:

org.opcfoundation.ua
opc-ua-stack
1.03.340.0-SNAPSHOT
Avatar
Levon He
New Member
Members
Forum Posts: 2
Member Since:
07/27/2016
sp_UserOfflineSmall Offline
2
08/15/2016 - 01:30
sp_Permalink sp_Print

I have resolve this problem.

Init a NamespaceTable object and call toNodeId method.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Liu Hongxin
Guest(s) 14
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1353
Posts: 4589