0

MQTT payload includes ALL Tags of view, want to create one topic for each Tag

Hi. When i publish data coming from a view, using jsonmqtt, via publisher, i am getting one topic on the MQTT Server including all datapoints.

Is there a configuration possibility to publish datapoints to single topics?

I want to get 500 topics when the view have 500 datapoints listed

3 replies

null
    • smason
    • 2 wk ago
    • Reported - view

    Hi ,

    You can drill all the way down the tagpath excluding the tag name. In that case, each tag would need to have a unique branch above it in order to publish a single tag on a single topic. Now, having said that, we've never tested this many publisher sessions. I don't know how it would handle 500 sessions. Can I ask what the use case is for having a single tag per topic?

      • kullmann
      • 2 wk ago
      • Reported - view

      Of course. We're trying to get Nodered connected to Canary to get some more calcpower to canary. Using MQTT, Nodered get new triggers every time a value changes. As of now, we're receiving a big structure and then? Need to build some ugly solution within Nodered to distribute messages between Flows :-(

      Honestly, i like more the idea to have a node connecting direktly via webapi, like the free Osi-Webapi Nodes. maybe some of the experts here have already invented that wheel :-)
       

      Btw: We're talking about 20.000 tags. I guess that will kill the publisher when we setup that amount of sessions, and it is super ugly as well :-)
       

      • smason
      • 2 wk ago
      • Reported - view

      Thanks for the info. 20k tags would be rough for sure and probably not feasible. If you want, you could leave a feature request: https://helpcenter.canarylabs.com/category/data-connectivity. That way we have it documented.

Content aside

print this pagePrint this page
  • 2 wk agoLast active
  • 3Replies
  • 12Views
  • 3 Following