Data selection parameters
- Last UpdatedOct 16, 2025
- 2 minute read
- PI System
- Adapter for MQTT 1.4
- Adapters
The following parameters are available for configuring Sparkplug B data selection:
|
Parameter |
Required |
Type |
Description |
|---|---|---|---|
|
selected |
Optional |
boolean |
Selects or clears a measurement. To select an item, set to true. To remove an item, leave the field empty or set to false. Allowed value: true or false |
|
name |
Optional |
string |
The optional friendly name of the data item collected from the data source. Allowed value: Any string |
|
topic |
Required |
string |
The MQTT topic string in the following format: {namespace}/{groupId}/{messageType}/{edgeNodeId}/{deviceId} The following rules apply to the MQTT topic string:
|
|
metricName |
Required |
string |
The name of the property in the metric. The parameter cannot be null, empty, or whitespace. |
|
streamId |
Optional |
string |
The custom stream Id that is used to create the streams. If you do not specify the streamId, the adapter generates a default stream Id based on the measurement configuration. A properly configured custom stream Id follows these rules:
|
|
dataFilterId |
Optional |
string |
The identification of the data filter. Allowed value: Any string Note: If the specified DataFilterId does not exist, unfiltered data is sent until that DataFilterId is created. |
|
uom |
Optional |
string |
The unit of measure value from a "properties" field of a metric within the payload supplied by the MQTT SparkplugB broker. Allowed value: Any string |
Runtime changes
When you create a new data selection item with a new topic property, the adapter automatically subscribes the topic to the data source and starts data collection for the stream associated with the data selection item. When you delete a data selection item, the adapter automatically stops collecting data for that item. Additionally, when you update a data selection item, the adapter updates the stream and continues data collection.
Note: Runtime changes also handle validation of configuration, which means that an invalid data selection configuration is rejected.