Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[paho-dev] PAHO JS WILDCARDS

Good morning everybody,

 

I’m using your Paho Client (_javascript_) library in order to connect me to a Mosca Server (Node.js).

My problem is about the wildcards use.

 

These are my topics:

·         Data/Reading

·         Data/Version

·         Data/SN

 

I would subscribe just one of these topic at a time.

So, I made this in order to allow only one topic:

 

client.unsubscribe(“Data/#”);

client.subscribe(“Data/Reading”);

 

This doesn’t work.

Only subscribe works with the wildcards.

 

client.subscribe(“Data/#”);

 

This command does the subscription of the three topics, but this is not useful for me.

 

I would understand if possible the regarding problem.

 

Thank you very much in advance.

Best regards.

 

Andrea Limoli

Software Engineer

Immagine Firma

 

 


Back to the top