13:54, EEST
July 27, 2021
Hi,
I am using subscription to OPC UA and reading values from onDataChange call back method.
I want to understand difference between the status codes under MonitoredDataItem and DataValue.
1. Are monitoredDataItem.errorCode and dataValue.getStatusCode both same?
2. And where can we get the error code when we call client.readValue, because here we do get only DataValue response?
Thanks!
14:45, EEST
Moderators
February 11, 2020
Hello,
1. The StatusCode provided by MonitoredDataItem.getErrorCode() contains error codes related to creation of the MonitoredItem and the StatusCode provided by DataValue.getStatusCode() describes the “quality” of the value.
2. The response of a Read operation doesn’t include separate error codes, but you can check the StatusCodes of the returned DataValues for errors related to Reading the values.
Most Users Ever Online: 1919
Currently Online:
22 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Heikki Tahvanainen: 402
hbrackel: 144
rocket science: 88
pramanj: 86
Francesco Zambon: 83
Ibrahim: 78
Sabari: 62
kapsl: 57
gjevremovic: 49
Xavier: 43
Member Stats:
Guest Posters: 0
Members: 727
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1529
Posts: 6471
Newest Members:
ellis87832073466, zkxwilliemae, gabriellabachus, Deakin, KTP25Zof, Wojciech Kubala, efrennowell431, wilfredostuart, caitlynfajardo, jeromechubb7Moderators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1032, Jimmy Ni: 26, Matti Siponen: 349, Lusetti: 0
Administrators: admin: 1