Hi,
as far as I understand, it's not possible to subscribe to multiple channels in the current mqtt implementation?
Greetings, Bernd
subscribe to multibe channels mqtt
-
- Posts: 463
- Joined: Wed Apr 08, 2015 5:19 am
Re: subscribe to multibe channels mqtt
What makes you think that?
Looking at the client code, it seems to be possible to just call "subscribe" several times with different topics. Your callback function is called with the topic name (and the msg payload) and needs to implement the dispatching.
Looking at the client code, it seems to be possible to just call "subscribe" several times with different topics. Your callback function is called with the topic name (and the msg payload) and needs to implement the dispatching.
Re: subscribe to multibe channels mqtt
correct - it works like a charm. Thanks!