15:12, EET
December 6, 2018
As per the documentation if any change occurred in the Value attribute or in the structure of value attribute(to be more precise.
Here is the value structure >
Value
StatusCode
name
value
description
serverTimestamp
sourceTimestamp
serverPicoseconds
sourcePicoseconds
value >> **here I’m referring to this value
Now my question is , is only numeric values are allowed in place of Value.value in case of DataChangeNotification ? Or it can be again a complex Structure like the parent ? Or what kind of value I can expect in that field ?
17:38, EET
April 3, 2012
Hi,
Assuming the DataChangeFilter.deadbandType is None, it can be any value that has a defined encoding (of UA Part 6 encoding rules). If the deadbandType is Absolute or Percent, then only subtypes of (UA type) Number.
Most of the types Variant accept are defined in the javadocs of the stack layer
“
org.opcfoundation.ua.builtintypes
OPC UA Part 6 defines 25 builtin types. Those 25 types are represented with the following java classes. Most builtin classes are immutable.
ID, Name, Java Class
1 Boolean java.lang.Boolean
2 SByte java.lang.Byte
3 Byte org.opcfoundation.ua.builtintypes.UnsignedByte
4 Int16 java.lang.Short
5 UInt16 org.opcfoundation.ua.builtintypes.UnsignedShort
6 Int32 java.lang.Integer
7 UInt32 org.opcfoundation.ua.builtintypes.UnsignedInteger
8 Int64 java.lang.Long
9 UInt64 org.opcfoundation.ua.builtintypes.UnsignedLong
10 Float java.lang.Float
11 Double java.lang.Double
12 String java.lang.String
13 DateTime org.opcfoundation.ua.builtintypes.DateTime
14 Guid java.util.UUID
15 ByteString org.opcfoundation.ua.builtintypes.ByteString
16 XmlElement org.opcfoundation.ua.builtintypes.XmlElement
17 NodeId org.opcfoundation.ua.builtintypes.NodeId
18 ExpandedNodeId org.opcfoundation.ua.builtintypes.ExpandedNodeId
19 StatusCode org.opcfoundation.ua.builtintypes.StatusCode
20 QualifiedName org.opcfoundation.ua.builtintypes.QualifiedName
21 LocalizedText org.opcfoundation.ua.builtintypes.LocalizedText
22 ExtensionObject org.opcfoundation.ua.builtintypes.ExtensionObject
23 DataValue org.opcfoundation.ua.builtintypes.DataValue
24 Variant org.opcfoundation.ua.builtintypes.Variant
25 DiagnosticInfo org.opcfoundation.ua.builtintypes.DiagnosticInfo
“
Additionally any Enumeration (will be converted to Integer) and Structure (are encoded as an ExtensionObject) works as well.
Most Users Ever Online: 1919
Currently Online:
55 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: 736
Moderators: 7
Admins: 1
Forum Stats:
Groups: 3
Forums: 15
Topics: 1524
Posts: 6450
Newest Members:
kristiewinkle8, rust, christamcdowall, redaahern07571, nigelbdhmp, travistimmons, AnnelCib, dalenegettinger, howardkennerley, ThomassnismModerators: Jouni Aro: 1026, Pyry: 1, Petri: 0, Bjarne Boström: 1026, Jimmy Ni: 26, Matti Siponen: 346, Lusetti: 0
Administrators: admin: 1