1

MQTT Publish into dynamic topic space

If I already have a structure like "enterprise/site/line1/โ€œ it would be useful to publish asset tags such as "line1.boiler.temperature" and "line1.production_counter" into that same hierarchy.

Perhaps this could use variables in the current topic field for JSON MQTT. Something like "enterprise/site/$viewname/$tagname" where viewname and tagname are variables populated by the configuration.

A more indepth solution might look like a mapping table where each tagname in the view can be mapped statically or dynamically to a topic. If multiple tags have the same topic then use the current JSON topic structure with the items object.

Reply

null

Content aside

print this pagePrint this page
  • 1 Votes
  • 2 days agoLast active
  • 5Views
  • 1 Following