forked from edgexfoundry/device-sdk-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.toml
88 lines (81 loc) · 2.05 KB
/
configuration.toml
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
[Writable]
LogLevel = 'INFO'
# Example InsecureSecrets configuration that simulates SecretStore for when EDGEX_SECURITY_SECRET_STORE=false
[Writable.InsecureSecrets]
[Writable.InsecureSecrets.Sample]
path = "sample"
[Writable.InsecureSecrets.Sample.Secrets]
username = ""
password = ""
[Service]
BootTimeout = 30000
CheckInterval = '10s'
Host = 'localhost'
ServerBindAddr = '' # blank value defaults to Service.Host value
Port = 49990
Protocol = 'http'
StartupMsg = 'device simple started'
Timeout = 20000
Labels = []
EnableAsyncReadings = true
AsyncBufferSize = 1
[Registry]
Host = 'localhost'
Port = 8500
Type = 'consul'
[Clients]
[Clients.Data]
Protocol = 'http'
Host = 'localhost'
Port = 48080
[Clients.Metadata]
Protocol = 'http'
Host = 'localhost'
Port = 48081
# Example SecretStore configuration.
# Only used when EDGEX_SECURITY_SECRET_STORE=true
# Must also add `ADD_SECRETSTORE_TOKENS: "device-simple"` to vault-worker environment so it generates
# the token and secret store in vault for 'device-simple'
[SecretStore]
Host = 'localhost'
Port = 8200
Path = '/v1/secret/edgex/device-simple/'
Protocol = 'http'
RootCaCertPath = ''
ServerName = ''
TokenFile = '/tmp/edgex/secrets/device-simple/secrets-token.json'
AdditionalRetryAttempts = 10
RetryWaitPeriod = "1s"
[SecretStore.Authentication]
AuthType = 'X-Vault-Token'
[Device]
DataTransform = true
InitCmd = ''
InitCmdArgs = ''
MaxCmdOps = 128
MaxCmdValueLen = 256
RemoveCmd = ''
RemoveCmdArgs = ''
ProfilesDir = './res'
UpdateLastConnected = false
[Device.Discovery]
Enabled = false
Interval = '30s'
# Pre-define Devices
[[DeviceList]]
Name = 'Simple-Device01'
Profile = 'Simple-Device'
Description = 'Example of Simple Device'
Labels = [ 'industrial' ]
[DeviceList.Protocols]
[DeviceList.Protocols.other]
Address = 'simple01'
Port = '300'
[[DeviceList.AutoEvents]]
Frequency = '10s'
OnChange = false
Resource = 'Switch'
[[DeviceList.AutoEvents]]
Frequency = '30s'
OnChange = false
Resource = 'Image'