DataValue Class
Extends BaseUAObject
Module: opcua.address_space.types
Constructor
DataValue
(
-
options
Parameters:
-
options
Object-
[value= null]
Variant optional -
[statusCode= 0]
StatusCode optional -
[sourceTimestamp= null]
DateTime optional -
[sourcePicoseconds= 0]
UInt16 optional -
[serverTimestamp= null]
DateTime optional -
[serverPicoseconds= 0]
UInt16 optional
-
Item Index
Methods
binaryStoreSize
()
Number
Calculate the required size to store this object in a binary stream.
Returns:
Number:
decode
(
-
stream
-
[option]
decode the object from a binary stream
Parameters:
-
stream
BinaryStream -
[option]
Object optional
decode_debug
()
isValid
()
Boolean
verify that all object attributes values are valid according to schema
Returns:
Boolean:
stringToQualifiedName
(
NamespaceIndex: Number, name: String
-
value
Parameters:
-
value
String
Returns:
NamespaceIndex: Number, name: String:
}
Example:
stringToQualifiedName("Hello") => {namespaceIndex: 0, name: "Hello"} stringToQualifiedName("3:Hello") => {namespaceIndex: 3, name: "Hello"}
toString
()
String
Returns:
String:
Properties
serverPicoseconds
UInt16
Default: 0
serverTimestamp
DateTime
Default: null
sourcePicoseconds
UInt16
Default: 0
sourceTimestamp
DateTime
Default: null