-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathconfiguration.yaml
50 lines (41 loc) · 1.46 KB
/
configuration.yaml
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
MaxEventSize: 0 # value 0 unlimit the maximum event size that can be sent to message bus or core-data
Writable:
LogLevel: "INFO"
# InsecureSecrets are required for when Redis is used for message bus
InsecureSecrets:
MQTT:
SecretName: "credentials"
SecretData:
username: ""
password: ""
Service:
Host: "localhost"
Port: 59982
StartupMsg: "device mqtt started"
MessageBus:
Optional:
# Default MQTT & NATS Specific options that need to be here to enable environment variable overrides of them
ClientId: "device-mqtt"
Device:
# These have common values (currently), but must be here for service local env overrides to apply when customized
ProfilesDir: "./res/profiles"
DevicesDir: "./res/devices"
MQTTBrokerInfo:
Schema: "tcp"
Host: "localhost"
Port: 1883
Qos: 0
KeepAlive: 3600
ClientId: "device-mqtt"
CredentialsRetryTime: 120 # Seconds
CredentialsRetryWait: 1 # Seconds
ConnEstablishingRetry: 10
ConnRetryWaitTime: 5
# AuthMode is the MQTT broker authentication mechanism. Currently, "none" and "usernamepassword" is the only AuthMode supported by this service, and the secret keys are "username" and "password".
AuthMode: "none"
CredentialsName: "credentials"
IncomingTopic: "incoming/data/#"
ResponseTopic: "command/response/#"
Writable:
# ResponseFetchInterval specifies the retry interval(milliseconds) to fetch the command response from the MQTT broker
ResponseFetchInterval: 500