-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: add support for lastWill and keep alive
By default, MQTT keep-alive is 1200 seconds and AWS broker add a 1.5x factor, so it takes generally 15 min to discover that a device is disconnected (30 min in the worst case) This patch allow a user to configure a last will and change the default timeout (30 seconds will be the minimum authorized by AWS) New config will have for example: "last-will-topic": "things/myDevice/shadow/name/demo-shadow/update", "last-will-message": "{\"state\":{\"reported\":{\"connected\":false}}}", "connect-timeout": 0, "keep-alive": 30,
- Loading branch information
1 parent
cf738c8
commit 8dff9d9
Showing
3 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters