-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathsanji-controller.conf
78 lines (60 loc) · 2.35 KB
/
sanji-controller.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
[global]
# =================================================================
# Connection
# =================================================================
# MQTT broker IP.
host = '127.0.0.1'
# MQTT broker port.
port = 1883
# Retry times to connect MQTT broker
# Max to 65535. If you want to try forever, use -1.
retry = -1
# =================================================================
# MQTT
# =================================================================
# Keep alive in seconds to MQTT broker.
# Max to 65535.
keepalive = 600
# On connection, a client sets the "clean session" flag,
# which is sometimes also known as the "clean start" flag.
#
# If clean session is set to false, then the connection is treated as durable.
# This means that when the client disconnects, any subscriptions it has will
# remain and any subsequent QoS 1 or 2 messages will be stored
# until it connects again in the future. If clean session is true,
# then all subscriptions will be removed for the client when it disconnects.
clean_session = true
# QoS for subscription and publication.
#
# Higher levels of QoS are more reliable,
# but involve higher latency and have higher bandwidth requirements.
# 0: The broker/client will deliver the message once, with no confirmation.
# 1: The broker/client will deliver the message at least once, with confirmation required.
# 2: The broker/client will deliver the message exactly once by using a four step handshake.
sub_qos = 2
pub_qos = 1
# Set the client id for this bridge connection. If not defined, this defaults
# to 'controller'.
cliet_id =
# Username and password (requires MQTT 3.1 broker).
username =
password =
# =================================================================
# Sanji Controller
# =================================================================
# The inverval in milliseconds for sanji controller to refresh sessions.
#
# Sanji controller will refresh every session status in order to
# drop TTL session, do heart beat with MQTT broker,
# and some protocol layer procedure.
#
# Noted, refresh interval MUST less then keepalive time.
# Max to 65535.
refresh_interval = 1000
# =================================================================
# MISC
# =================================================================
# Local id for extra topic
local_id =
# Enable mosquitto debug function.
mosq_debug = false