Hello,
I am adding a node in the UA tree at the time the client is connected.
The node is added but I am not able to see it , till I re browse the tree again.
I wanted that the tree be re browsed automatically after adding the node, so I used the following code.
BrowseHandle hndl = new BrowseHandle(this, this, new NodeId(Convert.ToUInt32("0"), InstanceNamespaceIndex));
ContinuationPoint cp = new ContinuationPoint();
cp.NodeToBrowse = hndl;
List<ReferenceDescription> results = new List<ReferenceDescription>();
RequestContext rcq = new RequestContext(Server, null, ServiceType.Browse);
base.Browse(rcq, cp, results);
In BrowseHandle 0 is the id of my node which I want to browse.
Please help where I m doing wrong.
Thanks & Regards
Milan
Re Browsing The Nodes With Code Not Working.
Moderator: uasdknet
-
- Sr. Member
- Posts: 13
- Joined: 12 Mar 2014, 10:50
- Support Team
- Hero Member
- Posts: 3072
- Joined: 18 Mar 2011, 15:09
Re: Re Browsing The Nodes With Code Not Working.
Hi Milan,
A NodeId with numeric identifier 0 is a null NodeId.
First of all you must use a valid NodeId.
Best Regards,
Unified Automation Support Team
A NodeId with numeric identifier 0 is a null NodeId.
First of all you must use a valid NodeId.
Best Regards,
Unified Automation Support Team
-
- Sr. Member
- Posts: 13
- Joined: 12 Mar 2014, 10:50
Re: Re Browsing The Nodes With Code Not Working.
Hello,
Even if the Id of Node id 1
i;e
BrowseHandle hndl = new BrowseHandle(this, this, new NodeId(Convert.ToUInt32("1"), InstanceNamespaceIndex));
Still my code is not working.
Its neither showing error nor its giving the required output.
Please help.
Regards
Milan
Even if the Id of Node id 1
i;e
BrowseHandle hndl = new BrowseHandle(this, this, new NodeId(Convert.ToUInt32("1"), InstanceNamespaceIndex));
Still my code is not working.
Its neither showing error nor its giving the required output.
Please help.
Regards
Milan