Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » Is it possible for a subscriber to know a publisher's client ID?
Is it possible for a subscriber to know a publisher's client ID? [message #1798796] Sun, 25 November 2018 13:23 Go to next message
Yusuke Fukuhara is currently offline Yusuke FukuharaFriend
Messages: 2
Registered: November 2018
Junior Member
I'm using paho as client and mosquitto as broker.

I'm using paho in Python.

Is it possible for a subscriber to know a publisher's client ID?

I appreciate it if you tell me whether it is possible and how to do it.
Re: Is it possible for a subscriber to know a publisher's client ID? [message #1798859 is a reply to message #1798796] Mon, 26 November 2018 17:03 Go to previous messageGo to next message
Ian Craggs is currently offline Ian CraggsFriend
Messages: 76
Registered: March 2013
Member
In general for MQTT, the answer is no. The publish/subscribe paradigm intentionally isolates publishers from subscribers. If the publishing application is your own, you could add the client id to the payload.

Re: Is it possible for a subscriber to know a publisher's client ID? [message #1798878 is a reply to message #1798859] Mon, 26 November 2018 23:02 Go to previous message
Yusuke Fukuhara is currently offline Yusuke FukuharaFriend
Messages: 2
Registered: November 2018
Junior Member
Thank you for your reply. Then I'll add client if in payload.
Previous Topic:Time delayed Condition for MQTT
Next Topic:Mqtt yielding and MQTTCloseSession at the end of cycle function
Goto Forum:
  


Current Time: Mon Oct 26 20:10:48 GMT 2020

Powered by FUDForum. Page generated in 0.02374 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top