Sparkplug B Decoder Processors¶
Dataristix version 3 and later provides two Sparkplug B decoder processors.
- The “Sparkplug B Metrics Decoder Processor” decodes metrics contained within a Sparkplug B message into tag values.
- The “Sparkplug B to JSON Processor” converts a Sparkplug B message into JSON format.
Add to Task¶
Add the respective processor to a task by dragging it from the “Build” panel onto the task’s “Task Builder” panel.
Sparkplug B Metrics Decoder Processor Configuration¶
Select the processor item in the “Task Builder” panel to view its properties.
You can change the following properties.
Name
The title of the processor as it appears within the task builder.
Metrics
Add metrics names you wish to extract from the Sparkplug B message payload. Each tag connected to the processor is interpreted as a Sparkplug B message and decoded into the given set of metrics.
Each decoded metric is produced as a separate output tag. The output tag is not simply named after the metric: its name is the connected input tag’s own name, followed by a period, followed by the metric name (for example, an input tag named “Payload” with a configured metric “Temperature” produces an output tag named “Payload.Temperature”).
Sparkplug B to JSON Decoder Processor Configuration¶
Select the processor item in the “Task Builder” panel to view its properties.
You can change the following properties.
Name
The title of the processor as it appears within the task builder.