Skip to main content

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

How is disconnection and re-connection with cleanSession = TRUE handled in this case? And, will the call back now indicate successful connection and subscription?

On Wed, Nov 30, 2016 at 6:50 PM, Patrick Collins <normalbloke@xxxxxxxxx> wrote:
Roger and all,

Thanks very much for that diff. I will compile and test as soon as possible.

Regards.

Paddy

On 30 November 2016 at 21:06, Roger Light <roger@xxxxxxxxxx> wrote:

Hi Patrick,

Try the attached patch, it should give you the right idea at least.
Cheers,

Roger




On 29 Nov 2016 12:11 a.m., "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


Back to the top