Data selection examples
- Last UpdatedNov 13, 2025
- 1 minute read
- PI System
- Adapter for MQTT 1.4
- Adapters
The following are examples of valid MQTT data selection configurations1:
Minimal data selection configuration
[
{
"topic" : "RandomTopic",
"valueField" : "$.TestNode[:1].Value",
"dataType" : "uint64"
}
]
Complete data selection configuration
[
{
"selected" : true,
"name" : null,
"streamId" : "RandomStreamId",
"dataFilterId" : null,
"topic" : "RandomTopic",
"valueField" : null,
"indexField" : "$.Timestamp",
"indexFormat" : null,
"dataType" : "Geolocation",
"dataFields" : { "Latitude": "$.Float1", "Longitude": "$.Float2" }
},
{
"selected" : true,
"name" : null,
"streamId" : "RandomStreamId",
"dataFilterId" : null,
"topic" : "RandomTopic",
"valueField" : null,
"indexField" : "$.Timestamp",
"indexFormat" : null,
"dataType" : "Coordinates",
"dataFields" : { "x": "$.Float4", "y": "$.Float5", "z": "$.Float6" }
}
]
1 Note: Both ValueField and IndexField require the correct structure of the JSON payload to be specified (in other words, what the data source returns). The previous examples use the following JSON payload structure:
{
"TestNode": [
{
"time": "02/17/2021 12:01:36 AM PST",
"value": "4578"
}
]
}