Reputation: 129
I have set up a MQTT bridge using a mosquitto broker. Config:
connection bridge-01
address url:1883
try_private true
cleansession true
topic posttopic1 in 0 "" topic1
remote_username username
remote_password password
Everything works fine, including retained messages. Messages that are published to the remote broker with the retain flag set will be published to the local broker with the retain flag as well. However when a retained message in the remote broker is cleared. By sending an empty message to a topic with the retain flag. The message is cleared in the remote broker but it is not cleared in the local broker. Why is that and how do I enable that feature?
The local broker is mosquitto version 1.6.10 and it is an MQTT v3.1.1 broker.
Upvotes: 0
Views: 389