In MQTT is it possible that a publisher application can publish data to certain users/subscribers?

64 views
Skip to first unread message

sujitha

unread,
Mar 8, 2017, 7:04:50 AM3/8/17
to MQTT
Hi,

In MQTT, is it possible that a publisher application can publish the data to the subscribers who logged in using particular username and password?

Nick O'Leary

unread,
Mar 8, 2017, 8:31:36 AM3/8/17
to mq...@googlegroups.com
Not as a standard feature of the protocol.

An application publishes messages to a topic. It is received by the subscribers to the topic. That is what the protocol defines. Any other sort of point-to-point messages will be non-standard, broker-specific behaviour.

Nick

On 8 March 2017 at 12:04, sujitha <suj...@gmail.com> wrote:
Hi,

In MQTT, is it possible that a publisher application can publish the data to the subscribers who logged in using particular username and password?

--
To learn more about MQTT please visit http://mqtt.org
---
You received this message because you are subscribed to the Google Groups "MQTT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mqtt+unsubscribe@googlegroups.com.
To post to this group, send email to mq...@googlegroups.com.
Visit this group at https://groups.google.com/group/mqtt.
For more options, visit https://groups.google.com/d/optout.

ran...@bevywise.com

unread,
Mar 13, 2017, 1:20:31 AM3/13/17
to MQTT
Hi, 

For a multi tenant situation,  you should define your topics name in such a way that there is no cross communication.  
 
For example a company xyz will have all topics like  /xyz/device/* while company abc will have topics like /abc/device/* . But there is no gaurantee that there will be cross subscription.   

Also the devices are completely configured by you, you can make sure that there is no cross subscription. 

This is a suggestion and not a perfect solution.

Best , 
Ranjith 
CEO, Bevywise Networks. 
Reply all
Reply to author
Forward
0 new messages