From 083fa02fb5df79a0a2248c4e2432e6fdd0ee8fd7 Mon Sep 17 00:00:00 2001 From: Miha Lunar Date: Sun, 8 Oct 2017 02:02:50 +0200 Subject: [PATCH] Don't assume unchanged for config anymore! --- .gitignore | 3 +-- config.yaml | 35 ++++++++++++++++++++++++++--------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/.gitignore b/.gitignore index 67af7f7..c795b05 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ -build -config.yaml \ No newline at end of file +build \ No newline at end of file diff --git a/config.yaml b/config.yaml index de2962d..be7ea2b 100644 --- a/config.yaml +++ b/config.yaml @@ -1,15 +1,32 @@ -# Set the URI of your MQTT broker here +# URI of your MQTT broker broker: tcp://: -# MQTT username +# Username for MQTT (default none) # username: "batman" -# MQTT password -# password: "ih8jokr" +# Password for MQTT (default none) +# password: "jkrsucks420" -# MQTT keep alive time (in seconds) -# keepalive: 60 +# Keep alive interval (seconds, default 15) +# keepalive: 20 -# Global prefix for all MQTT topics -# Defaults to /monitor/ -# prefix: batcave/screens/ \ No newline at end of file +# Global prefix for all MQTT topics (default /monitor/) +# prefix: batcave/screens/ + +# Reconnect on connection loss (default true) +# Reconnection works with a random backoff algorithm, starting at +# "backoff min" and exponentially increasing until reaching "backoff max" +# If false, application quits on a failed connection or on connection loss. +# reconnect: false + +# Reconnection minimum interval (milliseconds, default 50) +# backoff min: 10 + +# Reconnection maximum interval (milliseconds, default 2000) +# backoff max: 10000 + +# Connection timeout (seconds, default 1) +# connect timeout: 3 + +# Disconnection timeout (seconds, default 4) +# disconnect timeout: 2