Skip to main content



      Home
Home » Eclipse Projects » Mosquitto » Subscribing to another topic(Is it possible to subscribe to another topic while a client is already listening to one topic? )
Subscribing to another topic [message #1790722] Thu, 14 June 2018 22:46
Eclipse UserFriend
Hi ,

Am a newbie to the MQTT. Fortunately i were able to communicate a mqtt message to subscriber (client1) from a publisher (client2) with topic test/mqtt1.

Now if i try to subscribe to another topic - test/mqtt2 - in another thread, while client1 is already listening for a message from test/mqtt1 topic, i get a 'Unexpected error' message and am unable to subscribe to the second topic from the same client.

I do understand there are options to subscribe to multiple topics in one go - and it worked when i tested it that way, however, am trying to subscribe to topics, whenever a message gets published in a new topic. Is it possible? Or having wildcards in subscriber is the only way ?

Sreram
Previous Topic:Control arduino via MQTT
Next Topic:Regarding TLSv1.2 Encryption
Goto Forum:
  


Current Time: Mon Jul 14 04:18:35 EDT 2025

Powered by FUDForum. Page generated in 0.05851 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top