-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathmqtt-config-schema.coffee
88 lines (88 loc) · 2.86 KB
/
mqtt-config-schema.coffee
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
79
80
81
82
83
84
85
86
87
88
module.exports = {
title: "MQTT plugin config options"
type: "object"
properties:
debug:
description: "Debug mode. Writes debug messages to the pimatic log, if set to true."
type: "boolean"
default: false
brokers:
description: "List of MQTT brokers"
type: "array"
format: "table"
items:
type: "object"
properties:
brokerId:
description: "The brokerId of the MQTT broker which can be set for each device. Use 'default' for default Broker"
type: "string"
default: "default"
host:
description: "The IP or hostname of the MQTT broker (Default: 127.0.0.1)"
type: "string"
default: "127.0.0.1"
port:
description: "The port of the MQTT broker (Default: 1883)"
type: "integer"
default: 1883
keepalive:
description: "keepalive in seconds"
type: "integer"
default: 180
clientId:
description: "Client Id"
type: "string"
default: ""
protocolId:
description: "MQTT protocol ID"
type: "string"
default: "MQTT"
protocolVer:
description: "MQTT protocol version"
type: "integer"
default: 4
cleanSession:
description: "Set to false to receive QoS 1 and 2 messages while offline"
type: "boolean"
default: true
reconnect:
description: "reconnectPeriod in milliseconds"
type: "integer"
default: 10000
timeout:
description: "connectTimeout in milliseconds"
type: "integer"
default: 30000
username:
description: "The login name"
type: "string"
default: ""
password:
description: "The password"
type: "string"
default: ""
queueQoSZero:
description: "If connection is broken, queue outgoing QoS zero messages"
type: "boolean"
default: true
certPath:
description: "Path to the certificate of the client in PEM format, required for TLS connection"
type: "string"
default: ""
keyPath:
description: "Path to the key of the client in PEM format, required for TLS connection"
type: "string"
default: ""
rejectUnauthorized:
description: "Whether to reject self signed certificates"
type: "boolean"
default: true
ca:
description: "Path to the trusted CA list"
type: "string"
default: ""
ssl:
description: "Force the use of TLS/SSL"
type: "boolean"
default: false
}