Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Bridge to AWS IoT and retain flag

retain is a rather important feature and if a client is expecting it to work, then disconnecting the client is going to be bad.

IMO, if a broker doesn't support retain, it's not worth trying to deal with it.  Both Google and AWS mqtt brokers provide such a small fraction of the features of MQTT that I found it better to just run my own mqtt broker in the cloud.

On Thu, Oct 22, 2020 at 9:29 PM Thomas Meier <tfmeier@xxxxxxxxx> wrote:
I'm trying to create an MQTT bridge from my Mosquitto broker running inside Home Assistant to the AWS IoT broker.

As far as I can tell the bridge is setup properly as I can test communication in both directions (followed this guide https://aws.amazon.com/blogs/iot/how-to-bridge-mosquitto-mqtt-broker-to-aws-iot/).

However it appears that MQTT messages sent from Home Assistant have retain=yes. Reading on AWS IoT I understand the retain flag is not supported and any client sending message with retain=yes get disconnected.

Assuming this is correct I need to find a way to globally disable retain on the Mosquitto end, right? Reading the mosquitto.conf man page the option retain_available [ true | false ] doesn't seem to help.

Is there a way to globally disable retain?

Thomas
_______________________________________________
mosquitto-dev mailing list
mosquitto-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/mosquitto-dev

Back to the top