eclipse-sparkplug / sparkplug

Sparkplug
Eclipse Public License 2.0
109 stars 39 forks source link

Expand Sparkplug Aware MQTT Server definition to include automatic expansion of DATA and BIRTH metric content into individual topics #438

Open wes-johnson opened 1 year ago

wes-johnson commented 1 year ago

This came from a list of suggestions in #432.

RickBullotta commented 10 months ago

This would be considered a "Sparkplug aware broker" capability of course. I think one key consideration here is how the root topic is mapped to a Sparkplug Group/Node. That should be something configurable at the broker level I'd think, and if not defined the topics would look like:

/\<GroupID>/\<NodeID>/\<MetricName>

and

/\<GroupID>/\<NodeID>/\<MetricName>/_metadata

I would also suggest that these auto-expanded topics always be published with the retain flag set.