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 Enhancement: Add a topic for the current remote broker address:port. #536

Open
cjmaynard opened this issue Aug 29, 2017 · 0 comments
Labels
Component: mosquitto-broker Type: Enhancement A new feature for a minor or major release.

Comments

@cjmaynard
Copy link

Currently I can find out which remote broker the bridge is connected to by subscribing to "$SYS/broker/log/N", but because subscribing to this topic means I get all notices and not just the one I want, I have to parse through the data looking for messages of the form:

1504063227: Connecting bridge foo (1.2.3.4:1883)

It would be really nice if there was a specific topic that one could subscribe to in order to find out which remote broker the bridge is currently connected to. I suppose if there's no connection at all, then an empty address:port message could be delivered? Doing so would obviate the need for me to also subscribe to $SYS/broker/connection/+/state in order to find out if there's an active connection or not.

Thanks for reading.

@cjmaynard cjmaynard changed the title Bridge Enhancement: Add a topic for the current remote broker address. Bridge Enhancement: Add a topic for the current remote broker address:port. Aug 29, 2017
@toast-uz toast-uz added Type: Enhancement A new feature for a minor or major release. Component: mosquitto-broker labels Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: mosquitto-broker Type: Enhancement A new feature for a minor or major release.
Projects
None yet
Development

No branches or pull requests

2 participants