|Subscribing to another topic [message #1790722]
||Fri, 15 June 2018 02:46
| Sreram B
Registered: June 2018
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 ?
Powered by FUDForum
. Page generated in 0.01762 seconds