HomeGenie Forum

General Category => Troubleshooting and Support => Topic started by: Eric_S on March 24, 2015, 03:35:51 AM

Title: MQTT Publish and Subscribe to Different Topics
Post by: Eric_S on March 24, 2015, 03:35:51 AM
It appears as though HG publishes and subscribes to only one topic. Is there an easy way to publish to one topic and subscribe to another? The idea being HG and MQTT connected devices won't have to read their own posted comments. Is this a good idea? Should this feature be added to a future HG release? I think it would be one additional field and a minor code tweak.
Title: Re: MQTT Publish and Subscribe to Different Topics
Post by: Gene on March 24, 2015, 07:38:57 PM
Just publish/subscribe to a different topic?

http://www.homegenie.it/docs/doxy/a00005.html#a0bd12c5bddeda5704b05e8fb1b86a8e1 (http://www.homegenie.it/docs/doxy/a00005.html#a0bd12c5bddeda5704b05e8fb1b86a8e1)

g.
Title: Re: MQTT Publish and Subscribe to Different Topics
Post by: HGexperimenter on May 10, 2016, 07:51:55 PM
Eric,
Did you get this to work?  I had the same problem when subscribing to a topic and then in another program connecting to the same MQTT server and publishing.

Maybe the publish "connect" removes the subscribe "connect"
Title: Re: MQTT Publish and Subscribe to Different Topics
Post by: Eric_S on May 18, 2016, 07:27:44 AM
I have not tried in a year, so, no. The reply here did not make sense to me and I have been working on other projects since. Just never got back to it but I'd like to soon.