DataValue values shall be encoded as a JSON object with the fields shown in Table 41.
The DataValue adds additional fields to a Variant (see 5.4.2.17).
Table 41 – JSON Object Definition for a DataValue
Name |
Data Type |
Description |
UaType |
Byte |
|
Value |
* |
|
Dimensions |
UInt32 |
See the Dimensions field in the Variant. |
Status |
StatusCode |
The status associated with the value. Not encoded if the value is Good (0). |
SourceTimestamp |
DateTime |
The source timestamp associated with the value. Not encoded if the value is DateTime.MinValue. |
SourcePicoseconds |
UInt16 |
The number of 10 Picosecond intervals for the SourceTimestamp. Not encoded if the value is 0. |
ServerTimestamp |
DateTime |
The Server timestamp associated with the value. Not encoded if the value is DateTime.MinValue. |
ServerPicoseconds |
UInt16 |
The number of 10 Picosecond intervals for the ServerTimestamp. Not encoded if the value is 0. |