-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to subscribe multiple topics ? #40
Comments
Hi. You can use wildcard topic along with listen function to make a variable out of a pattern in wildcard
Sent from my 📲
… On 08-Jun-2018, at 8:44 AM, IOT_Developer ***@***.***> wrote:
Hi,
I'm looking for a way to subscribe multiple topics, can you please give some examples about it ?
Thanks
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi @arcoirislabs , |
First subscribe to the topic using subscribe function. Then use listen function
…Sent from my iPhone
On 08-Jun-2018, at 1:48 PM, IOT_Developer ***@***.***> wrote:
Hi @arcoirislabs ,
Yes I know it, but on listen function i can not found any params which return Topic name.
cordova.plugins.CordovaMqTTPlugin.listen("/topic/+singlewc/#multiwc",function(payload,params){ //Callback:- (If the user has published to /topic/room/hall) //payload : contains payload data //params : {singlewc:room,multiwc:hall} })
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Hi @arcoirislabs ,
My function work fine but I'm looking for a way in order to Subscribe to any topic by user typed. It mean put dynamic topic into listen function. Could you please give me any suggestion to do it ? Thanks |
Hi,
I'm looking for a way to subscribe multiple topics, can you please give some examples about it ?
Thanks
The text was updated successfully, but these errors were encountered: