Subscribe to Single Node #886
Replies: 3 comments 5 replies
-
Hi Bibhu, here's an example of how you can achieve your goal. You can basically just take the code, adjust the endpoint, port and NodeId and you're done. |
Beta Was this translation helpful? Give feedback.
-
There is also a higher level ManagedSubscription and ManagedDataItem API: https://github.com/eclipse/milo/blob/17a8fc8d14893e3e4532a9237789363b8cc50891/milo-examples/client-examples/src/main/java/org/eclipse/milo/examples/client/ManagedSubscriptionDataExample.java |
Beta Was this translation helpful? Give feedback.
-
Hello Everyone, Thank you for subscription. Now I am able to subscribe the nodes. But after performing the subscriptions, I would like to unsubscribe a particular node. For example: I have subscribed to "node1" and "node2" and getting the subscription id "s1". Now I would like to unsubscribe only "node1" (not node2). I tried below approach to unsubscribe the node.
subscription.deleteMonitoredItems(item).get(); But this approach didn't work for me. I am still able to see values are coming for the point which I unsubscribed. Could you please help me how can I resolve the issue. Thanks, |
Beta Was this translation helpful? Give feedback.
-
Hello,
Thanks,
Bibhu
Beta Was this translation helpful? Give feedback.
All reactions