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

Allow the MQTT bridge keep alive interval to be configured #3068

Closed
jarhodes314 opened this issue Aug 19, 2024 · 2 comments
Closed

Allow the MQTT bridge keep alive interval to be configured #3068

jarhodes314 opened this issue Aug 19, 2024 · 2 comments
Labels
improvement User value theme:mqtt Theme: mqtt and mosquitto related topics

Comments

@jarhodes314
Copy link
Contributor

Is your feature improvement request related to a problem? Please describe.
A customer is trying to minimise the data used by thin-edge. In doing this, they want to reduce the frequency of the MQTT keep-alive messages sent by mosquitto (and the built-in bridge) to the cloud.

Describe the solution you'd like
We should add a configuration e.g. mqtt.bridge.keepalive_interval that affects the mosquitto bridge configuration and the built-in bridge. To configure it in mosquitto, we need to add the line:

keepalive_interval <no of seconds>

In the built-in bridge, we'll need to call set_keep_alive on the cloud connection to configure this parameter.

Both default to 60 seconds, so that should be the configuration default.

@jarhodes314 jarhodes314 added improvement User value theme:mqtt Theme: mqtt and mosquitto related topics labels Aug 19, 2024
@reubenmiller
Copy link
Contributor

Though we'll have to include a note to the users about what are some acceptable Cumulocity IoT keep alive values, because different IoT providers will have different recommended/acceptable values (I'm fairly certain that Cumulocity IoT will reject connections that have a keep alive in the range of 15 minutes etc.)

@reubenmiller
Copy link
Contributor

Duplicate of #3153

@reubenmiller reubenmiller marked this as a duplicate of #3153 Oct 10, 2024
@reubenmiller reubenmiller closed this as not planned Won't fix, can't repro, duplicate, stale Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement User value theme:mqtt Theme: mqtt and mosquitto related topics
Projects
None yet
Development

No branches or pull requests

2 participants