Skip to content

Commit

Permalink
Merge pull request #525 from telefonicaid/task/set_default_mqtt_keepa…
Browse files Browse the repository at this point in the history
…live_60

set 60 default keepalive mqtt value
  • Loading branch information
fgalan authored Jan 12, 2021
2 parents c5fef48 + f489b0b commit 63cda51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES_NEXT_RELEASE
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Add: Support of multimeasure for MQTT and AMQP transport (#462)
Fix: Set 60 seconds for default mqtt keepalive option (#413)
Add: Support of multimeasure for MQTT and AMQP transport (#462)
4 changes: 2 additions & 2 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ config.mqtt = {
*/
retryTime: 5,
/**
* Time to keep connection open between client and MQTT broker (default is 0 seconds)
* Time to keep connection open between client and MQTT broker (default is 60 seconds)
*/
keepalive: 0,
keepalive: 60,

/**
* Whether to use slashes at the beginning of topic when sending or not
Expand Down
2 changes: 1 addition & 1 deletion docs/installationguide.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ These are the currently available MQTT configuration options:
- **retain**: retain flag (default is false).
- **retries**: Number of MQTT connection error retries (default is 5).
- **retryTime**: Time between MQTT connection retries (default is 5 seconds).
- **keepalive**: Time to keep connection open between client and MQTT broker (default is 0 seconds). If you experience
- **keepalive**: Time to keep connection open between client and MQTT broker (default is 60 seconds). If you experience
disconnnection problems using 0 (as the one described in
[this case](https://github.com/telefonicaid/iotagent-json/issues/455)) a value greater than 0 is recommended.
- **avoidLeadingSlash** this flag sets whether the agent publishes commands to topics starting with slash (default in
Expand Down

0 comments on commit 63cda51

Please sign in to comment.