How it works
This Coreflux LoT template takes Sparkplug B data, decodes it to sparkplug/decoded/#, and flattens named metrics into a clean UNS under factory/hall-c/hall-c-edge/.... It turns temperature and state readings from two press devices into structured model records that are easy to subscribe to and alert on.
Key features
- Sparkplug decode: Consumes
spBv1.0/#and republishes TVQ JSON. - Metric flattening: Maps
TemperatureandStateinto separate model shapes. - Device normalization: Converts
Press01andPress02to lowercase device IDs. - Clean UNS output: Publishes to
factory/hall-c/hall-c-edge/<device>/.... - Alert-ready data: Supports downstream checks on structured temperature topics.
Prerequisites
- Coreflux broker 2.14.2+.
- Sparkplug B source or the included encoder route.
- Access to the local broker on
localhost:1883for the demo path.
Setup
- Run the models first.
- Enable
SparkplugEncodeonly for the hardware-free demo path. - Enable
SparkplugDecodeto readspBv1.0/#. - Run
FlattenSparkplugToUnsto publish clean UNS records. - Use the provided rules if you want a read-only dashboard user.
