VoxCommando

New Features and Feature Requests => Feature Requests => Topic started by: IKROWNI on July 10, 2017, 06:05:35 PM

Title: Multiple MQTT topic subscriptions
Post by: IKROWNI 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
Title: Re: Multiple MQTT topic subscriptions
Post by: jitterjames 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.
Title: Re: Multiple MQTT topic subscriptions
Post by: jitterjames 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/