The following DataSets are used for the following JSON message examples.
Table A.13 shows the field for example DataSet1.
Field Name |
DataType |
ValueRank |
Active |
Boolean |
Scalar |
Temperature |
Double |
Scalar |
Counter |
UInt32 |
Scalar |
AdditionalInfo |
String |
Scalar |
Table A.14 shows the field for example DataSet2.
Field Name |
DataType |
ValueRank |
LocationName |
String |
Scalar |
Coordinate |
MyStruct |
Scalar |
X |
Float |
Scalar |
Y |
Float |
Scalar |
Measurements |
Int32 |
Array |
Table A.15 shows the field for example DataSet3.
Field Name |
DataType |
ValueRank |
BooleanValue |
Boolean |
Scalar |
Int32Value |
Int32 |
Scalar |
Int64Value |
Int64 |
Scalar |
UInt32Value |
UInt32 |
Scalar |
UInt64Value |
UInt64 |
Scalar |
DoubleValue |
Double |
Scalar |
DateTimeValue |
DateTime |
Scalar |
StringValue |
String |
Scalar |
GuidValue |
Guid |
Scalar |
StatusCodeValue |
StatusCode |
Scalar |
LocalizedTextValue |
LocalizedText |
Scalar |
ByteStringValue |
ByteString |
Scalar |
NodeIdValue |
NodeId |
Scalar |
QualifiedNameValue |
QualifiedName |
Scalar |
The following example shows the DataSetMetaData message for DataSet1.
{
"MessageId": "66D65CA4-92EE-4195-9867-E6E27794B692",
"MessageType": "ua-metadata",
"PublisherId": "MyPublisher",
"DataSetWriterId": 101,
"MetaData": {
"Fields": [
{
"Name": "Active",
"FieldFlags": 0,
"BuiltInType": 1,
"DataType": {"Id": 1},
"ValueRank": -1,
"MaxStringLength": 0,
"DataSetFieldId": "f355bfe8-d5c0-4073-aa89-c8d9d9f8c0c4"
},
{
"Name": "Temperature",
"FieldFlags": 0,
"BuiltInType": 11,
"DataType": {"Id": 11},
"ValueRank": -1,
"MaxStringLength": 0,
"DataSetFieldId": "4b91e1cc-61f5-411a-9fb3-ea9087d2154c"
},
{
"Name": "Counter",
"FieldFlags": 0,
"BuiltInType": 7,
"DataType": {"Id": 7},
"ValueRank": -1,
"MaxStringLength": 0,
"DataSetFieldId": "885d0b3b-8a83-41ae-882a-3a528041140f"
},
{
"Name": "AdditionalInfo",
"FieldFlags": 0,
"BuiltInType": 12,
"DataType": {"Id": 12},
"ValueRank": -1,
"MaxStringLength": 0,
"DataSetFieldId": "b020c4a8-c427-4d33-83ea-b0f437a9c6ea"
}
],
"DataSetClassId": "e95258a4-0b50-41b0-9f37-505e90565584",
"ConfigurationVersion": {
"MajorVersion": 672338910,
"MinorVersion": 672341762
}
},
"DataSetWriterName": "Writer101"
}
The following example shows the DataSetMetaData message for DataSet2.
{
"MessageId": "66D65CA4-92EE-4195-9867-E6E27794B692",
"MessageType": "ua-metadata",
"PublisherId": "MyPublisher",
"DataSetWriterId": 102,
"MetaData": {
"Namespaces": [
"urn:DEMO-5:UA Sample Server",
"http://test.org/UA/Data/"
],
"StructureDataTypes": [
{
"DataTypeId": {"IdType": 1, "Id": "CoordinateDataType", "Namespace": 2},
"Name": {"Name": "CoordinateDataType", "Uri": 2},
"StructureDefinition": {
"DefaultEncodingId": {"Id": 24351, "Namespace": 2},
"BaseDataType": {"Id": 22},
"StructureType": 0,
"Fields": [
{
"Name": "X",
"Description": {"Text": "The X coordinate."},
"DataType": {"Id": 10},
"ValueRank": -1,
"MaxStringLength": 0,
"IsOptional": false
},
{
"Name": "Y",
"Description": {"Text": "The Y coordinate."},
"DataType": {"Id": 10},
"ValueRank": -1,
"MaxStringLength": 0,
"IsOptional": false
}
]
}
}
],
"Fields": [
{
"Name": "LocationName",
"FieldFlags": 0,
"BuiltInType": 12,
"DataType": {"Id": 12},
"ValueRank": -1,
"MaxStringLength": 0,
"DataSetFieldId": "8968e376-e281-47bf-b621-e1fb710c8954"
},
{
"Name": "Coordinate",
"FieldFlags": 0,
"BuiltInType": 22,
"DataType": {
"IdType": 1,
"Id": "CoordinateDataType",
"Namespace": 2
},
"ValueRank": -1,
"MaxStringLength": 0,
"DataSetFieldId": "4a1a1f3c-76c0-46ac-92bd-b02bfbe59dcf"
},
{
"Name": "Measurements",
"FieldFlags": 0,
"BuiltInType": 6,
"DataType": {"Id": 6},
"ValueRank": 1,
"MaxStringLength": 0,
"DataSetFieldId": "7d177014-32de-421e-a0a3-bc48ede8ac9d"
}
],
"DataSetClassId": "4f457b18-32f8-48a5-a6f0-18ae5ebdc7f4",
"ConfigurationVersion": {"MajorVersion": 672338910, "MinorVersion": 672341762}
},
"DataSetWriterName": "Writer102"
}