From cb8cc1e942d63603cc05593125a804a5e3781f87 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Wed, 17 Jan 2018 01:22:26 +0100 Subject: [PATCH] mqtt: added example configuration --- etc/example.conf | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/etc/example.conf b/etc/example.conf index 68c5a9f7d..fb58b3ff6 100644 --- a/etc/example.conf +++ b/etc/example.conf @@ -302,6 +302,29 @@ nodes = { "int32" ] } + }, + mqtt_node = { + type = "mqtt", + + format = "protobuf", + + host = "localhost", + port = 1883, + + keepalive = 5, # Send ping every 5 seconds to keep connection alive + retain = false, + qos = 0, + + publish = "test-topic", + subscribe = "test-topic", + + ssl = { + enabled = false, + insecure = true, + cafile = "/etc/ssl/certs/ca-bundle.crt", + certfile = "/etc/ssl/certs/my.crt", + keyfile = "/etc/ssl/keys/my.key" + } } };