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

Device options: allow to change MQTT connection keepalive value #54

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Annopaolo
Copy link
Collaborator

Allow the user to specify a MQTT connection keepalive value different from the default one (30 sec).
Increasing the keepalive will reduce network traffic, but it will take longer to notice that connection went off.
The default value is 30s so as to mantain the previous behaviour.

Allow the user to specify a MQTT connection keepalive value different from the default one (30 sec).
Increasing the keepalive will reduce network traffic, but it will take longer to notice that connection went off.
The default value is 30s so as to mantain the previous behaviour.

Signed-off-by: Arnaldo Cesco <arnaldo.cesco@secomind.com>
@Annopaolo Annopaolo added the enhancement New feature or request label Aug 31, 2022
@codecov
Copy link

codecov bot commented Aug 31, 2022

Codecov Report

Merging #54 (ad423f4) into master (bd59647) will increase coverage by 0.10%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master      #54      +/-   ##
==========================================
+ Coverage   39.98%   40.08%   +0.10%     
==========================================
  Files           7        7              
  Lines        1158     1160       +2     
==========================================
+ Hits          463      465       +2     
  Misses        592      592              
  Partials      103      103              
Impacted Files Coverage Δ
device/device_opts.go 70.00% <100.00%> (+1.57%) ⬆️
device/protocol_mqtt_v1.go 45.09% <100.00%> (+0.11%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

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

Successfully merging this pull request may close these issues.

2 participants