Skip to main content

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

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


Back to the top