MQTT Tag Best Practice

I am trying to figure out the best practice for MQTT tags and tag provider. I have read a bunch of posts and it seems like there are two popular ways.

  1. Create a script that monitors the MQTT engine tags and create tags in your tag provider
  2. Create a UDT of derived tags from the mqtt engine tags.

I just wanted to see if this is still the best two ways to monitor mqtt tags and which is preferred?

I have a non sparkplug B MQTT broker, in there I have the topic structure of enterprise/site/area/line/ of any mqtt equipment.

I just want the tags for each line into specific tag providers. any suggestions? Thanks!

UDTs are generally always a good idea if your equipment is standardized enough for a UDT to be worthwhile. You can also then have a script that monitors the Engine provider and auto-creates the appropriate UDT in the appropriate provider.

1 Like