![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
04/23/2016
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
Hi,
I am using OPC.Ua.core and OPC.Ua.Client dlls in my OPC UA Client.
I have implemented subscription , based on Getdatachanges() method as given code snippet.
When Quality alone is Bad (value remains same ), I am not reviving the notification from Getdatachanges() method.
Can you please help me how can I get datachange event notification when Quality alone changes?
private void session_Notification(Session session, NotificationEventArgs e)
{
//now to iterate thru each monitored item change event within the received values:
foreach (MonitoredItemNotification currentItemNotification in e.NotificationMessage.GetDataChanges(true))
{}
}
Thanks
Antoni
![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/guestdefault.png)
Hello Antoni,
a change in quality shall always cause a data change of a monitored item if publishing and sampling are enabled.
To identify the source of the error you should first check whether it is a server problem by using some other client or the compliance test tool (assuming you are an OPC member). You can check here for free Clients (http://www.opcconnect.com/uafr.....hp#freecli). Try for instance UAExpert.
If you are sure that the server sends the notification you will have to track the problem in your client. Note that the OPC Foundation provides the complete sources for the mentioned components to the public at https://github.com/OPCFoundation/UA-.NET. I.e. you can build and debug everything.
1 Guest(s)