Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Automatic Subscription

You mean, edit the 'table' (or, some other repository of client id and topic string mapping) through an admin function on broker? A SUB or UNSUB message implementation would write or delete from that same 'table' anyway.

Interesting.

Pardon brevity, typos and grammar mistakes. Sent from phone..


On 29 Nov 2016 13:57, "Dominik Obermaier" <dominik.obermaier@xxxxxxxxx> wrote:
Nagesh,

my reading is that clients create subscriptions with SUBSCRIBE packets. It does not say subscriptions must be created exclusively with these packets (same is true for UNSUBSCRIBE when removing subscriptions). 

My understanding ist that using SUBSCRIBE packets from clients is the default way, but administrative actions on the broker could also lead to the creation of subscriptions. At least it's not prohibited by the spec.

Best,
Dominik

On 29 November 2016 at 09:04:15, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) (nageshblore@xxxxxxxxx) wrote:

Hi Dominic,
This link clearly calls out the subscription is initiated by the client. http://docs.oasis-open.org/mqtt/mqtt/v3.1.1/os/mqtt-v3.1.1-os.html#_Toc398718063

On Tue, Nov 29, 2016 at 1:26 PM, Dominik Obermaier <dominik.obermaier@xxxxxxxxx> wrote:
Hi Nagesh,

I don't think there's a statement in the spec that prohibits a server initiated subscription.

It also seems most clients (like Paho) support these kind of server-initiated subscriptions.

On which statement of the spec do you refer to?


On 29 November 2016 at 07:56:55, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) (nageshblore@xxxxxxxxx) wrote:

I am not clear with this statement, "I want the broker to subscribe to a topic on behalf of the client." Even if the broker did subscribe on behalf of the client, for the client to receive messages, the client *MUST* subscribe to a topic.

On Tue, Nov 29, 2016 at 12:03 PM, Paul Fremantle <paul.fremantle@xxxxxxxxxx> wrote:
Does it have to be Mosquitto? If you are using something like Aedes (https://github.com/mcollina/aedes
it will be really easy (I think!).

You get an event when a new client connects, and you can also expicitly publish packets to clients of your own programmatic free will.

Paul

On 29 November 2016 at 06:16, Patrick Collins <normalbloke@xxxxxxxxx> wrote:
No I want the broker to subscribe to a topic on behalf of the client. For reasons known only to Telit the HE910 assumes that it has been subscribed to certain topics after connecting to the broker and without subscribing to those topics.

On 29 November 2016 at 14:51, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) <nageshblore@xxxxxxxxx> wrote:
Hold on, 1 min.

Are you saying, you want the broker to tell the client what topic it should subscribe? Rather than, the client initiate the subscription? In MQTT, the subscription is always initiated by the client.


On Tue, Nov 29, 2016 at 5:41 AM, Patrick Collins <normalbloke@xxxxxxxxx> wrote:
Would you be able to provide some clues as to how to implement this. I'm not familiar with the Mosquitto source code but could write something given some direction from the members of this distribution list. What I need to achieve is to subscribe a client to automatically subscribe certain clients of a Mosquitto MQTT broker to nominated topics when the client connects and wthout any action by the client.

On 28 November 2016 at 23:38, ನಾಗೇಶ್ ಸುಬ್ರಹ್ಮಣ್ಯ (Nagesh S) <nageshblore@xxxxxxxxx> wrote:

Connect and subscribe are two different messages in mqtt protocol. So, both messages must be exchanged.

A wrapper can be developed to give an appearance of single message.

Or, implement a new message altogether- say, CONNSUB. :)

Pardon brevity, typos and grammar mistakes. Sent from phone.


On 28 Nov 2016 17:58, "Patrick Collins" <normalbloke@xxxxxxxxx> wrote:
Would it be possible for the mosquitto broker to automatically subscribe clients to a topic on connection. This is to work with the Telit HE910 modules that expect this behavior.

Regards.

Paddy

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev


_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev



--
Paul Fremantle
Doctoral Researcher, University of Portsmouth, School of Computing
Visiting Scientist, Institute of the Architecture of Application Systems, Stuttgart
Visiting Lecturer, Software Engineering Programme, Oxford University
Co-Founder, WSO2
Apache Member and Committer
twitter: pzfreo / skype: paulfremantle / blog: http://pzf.fremantle.org

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top