I am using OPC UA java stack and developing an OPC UA client. I have made subscriptions and publish request to a monitored Item. I am using datachangefilter to set trigger if the value of the monitored item changes. Now I am able to get notification. But i want to get the notification only when data change occurs. I am using this code snippet
DataChangeFilter datachange = new DataChangeFilter();
datachange.setTrigger(DataChangeTrigger.StatusValue);