Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Fri, 15 June 2018 02:46
Sreram B is currently offline Sreram BFriend
Messages: 1
Registered: June 2018
Junior Member
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: Fri Nov 16 05:03:44 GMT 2018

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

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

Back to the top