Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bridge to another broker (HiveMQ): Can incoming topics from the other broker be retained on the local Mosquitto broker? #3102

Open
speckenbuettel opened this issue Aug 27, 2024 · 1 comment

Comments

@speckenbuettel
Copy link

Hi,

I am using a bridge between my local Mosquitto (2.0.18) and a remote broker (HiveMQ Cloud).

Can the local Mosquitto be configured in such a way that incoming topics can be retained on the local Mosquitto, even if there are no updates from the remote broker or the connection is down?

Thanks.

@ckrey
Copy link
Contributor

ckrey commented Oct 9, 2024

The local mosquitto will retain incoming topic messages if the message was sent with the retained flag to the remote broker. The remote broker will propagate the retained flag.

As a result, a client subscribing to the local broker will receive the retained messages even if the remote broker is not connected.

There is no feature in MQTT/mosquitto to retaine messages for topics which are not retained originally.

Does this answer your question?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@ckrey @speckenbuettel and others