more G-Labs products

Author Topic: MQTT Publish and Subscribe to Different Topics  (Read 1392 times)

March 24, 2015, 03:35:51 AM
Read 1392 times

Eric_S

  • *
  • Information
  • Newbie
  • Posts: 22
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.

March 24, 2015, 07:38:57 PM
Reply #1

Gene

  • *****
  • Information
  • Administrator
  • Posts: 1472
  • Tangible is the future!
    • Yet Another Programmer

May 10, 2016, 07:51:55 PM
Reply #2

HGexperimenter

  • **
  • Information
  • Jr. Member
  • Posts: 42
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"

May 18, 2016, 07:27:44 AM
Reply #3

Eric_S

  • *
  • Information
  • Newbie
  • Posts: 22
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.