Author Topic: Multiple MQTT topic subscriptions  (Read 2033 times)

0 Members and 1 Guest are viewing this topic.

IKROWNI

  • $upporter
  • Sr. Member
  • *****
  • Posts: 146
  • Karma: 2
    • View Profile
Multiple MQTT topic subscriptions
« on: July 10, 2017, 06:05:35 PM »
The MQTT plugin works great but 1 downside is only being able to subscribe to 1 topic at a time. Could you add the ability to just keep adding as many as you want?

Thanks

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Multiple MQTT topic subscriptions
« Reply #1 on: July 11, 2017, 09:58:20 AM »
Yes, I can add this option.

But you already have two other ways to solve this issue.

1st - You can just subscribe to: # which will generate events for ALL topics, and you can just wire up the events for topics that you are interested in.  This could pose a problem though if you receive a really large number of messages on topics that you are not interested in because it would be generating events constantly.

2nd: You can use the action MQTT.Subscribe to subscribe to as many topics as you want.  You just need to put these all into a command that runs when VC starts up.

jitterjames

  • Administrator
  • Hero Member
  • *****
  • Posts: 7714
  • Karma: 116
    • View Profile
    • VoxCommando
Re: Multiple MQTT topic subscriptions
« Reply #2 on: July 18, 2017, 02:37:23 PM »
2.2.3.8 is now on the download page and includes an updated MQTT plugin with the ability to add a list of topics to it.

http://voxcommando.com/home/downloads/