-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfiguration.toml
86 lines (77 loc) · 1.92 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
[Service]
Host = "device-modbus-v3"
Port = 49999
ConnectRetries = 3
Labels = []
OpenMsg = "device modbus started"
Timeout = 5000
EnableAsyncReadings = true
AsyncBufferSize = 16
[Registry]
Host = "edgex-core-consul"
Port = 8500
CheckInterval = "10s"
FailLimit = 3
FailWaitTime = 10
Type = "consul"
[Logging]
EnableRemote = true
File = "./device-Modbus.log"
[Writable]
LogLevel = "INFO"
[Clients]
[Clients.Data]
Name = "edgex-core-data"
Protocol = "http"
Host = "edgex-core-data"
Port = 48080
Timeout = 50000
[Clients.Metadata]
Name = "edgex-core-metadata"
Protocol = "http"
Host = "edgex-core-metadata"
Port = 48081
Timeout = 50000
[Clients.Logging]
Name = "edgex-support-logging"
Protocol = "http"
Host = "edgex-support-logging"
Port = 48061
[Device]
DataTransform = true
InitCmd = ""
InitCmdArgs = ""
MaxCmdOps = 128
MaxCmdValueLen = 256
RemoveCmd = ""
RemoveCmdArgs = ""
ProfilesDir = "./res"
# Pre-define Devices
[[DeviceList]]
Name = "Modbus-TCP-test-device-11"
Profile = "Another.Device.Modbus.Profile"
Description = "This device is a product for monitoring and controlling digital inputs and outputs over a LAN."
labels = [ "Air conditioner","modbus TCP" ]
[DeviceList.Protocols]
[DeviceList.Protocols.modbus-tcp]
Address = "192.168.1.246"
Port = "502"
UnitID = "1"
[[DeviceList.AutoEvents]]
Frequency = "20s"
OnChange = false
Resource = "Switch"
#[[DeviceList]]
# Name = "Modbus-TCP-test-device-22"
# Profile = "Test.Device.Modbus.Profile"
# Description = "This device is a product for monitoring and controlling digital inputs and outputs over a LAN."
# labels = [ "Air conditioner","modbus TCP" ]
# [DeviceList.Protocols]
# [DeviceList.Protocols.modbus-tcp]
# Address = "192.168.1.246"
# Port = "502"
# UnitID = "2"
# [[DeviceList.AutoEvents]]
# Frequency = "20s"
# OnChange = false
# Resource = "HVACValues"