Packages

The MQTT client is written in Erlang and allows to connect to MQTT server and send/receive messages according to MQTT messaging protocol version 3.1.1

Current section

Files

Jump to
mqtt_client mqtt.config
Raw

mqtt.config

[
{sasl, [
{sasl_error_logger, false},
{utc_log, true}
]},
{lager, [
%% log levels: none, debug, info, notice, warning, error, critical, alert, emergency
{error_logger_redirect, false},
{log_root, "logs"},
{handlers, [
{lager_console_backend, [
{level,
% none,
% debug,
info},
{formatter, lager_default_formatter},
{formatter_config, [
time, " [",severity,"] ", pid, " ",
{module, [module, ":"], [""]},
{function, [function, ":"], [""]},
{line, [line], [""]},
{endtype, [" -", endtype, "- "], [" - "]},
message, "\n"
]}
]},
{lager_file_backend, [{file, "common.log.txt"}, {level, info}]}
]},
{traces, [
]}
]},
{mqtt_client, [
{host, "localhost"},
{port, 8080},
{mqtt_protocol_ver, '3.1.1'}
]}
].