forked from edgexfoundry/device-modbus-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor!: Change configuration and devices files format to YAML
BREAKING CHANGE: Configuration and devices files are now in YAML format closes issue edgexfoundry#444 Signed-off-by: Valina Li <valina.li@intel.com>
- Loading branch information
Showing
8 changed files
with
106 additions
and
94 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Writable: | ||
LogLevel: INFO | ||
|
||
# uncomment when running from command-line in hybrid mode with -cp -o flags | ||
Registry: | ||
Host: localhost | ||
|
||
Clients: | ||
core-metadata: | ||
Host: localhost # uncomment when running from command-line in hybrid mode | ||
|
||
Service: | ||
Port: 59901 | ||
StartupMsg: device modbus started | ||
|
||
MessageBus: | ||
Host: localhost # uncomment when running from command-line in hybrid mode | ||
Optional: | ||
ClientId: device-modbus | ||
|
||
Device: | ||
# These two overrides are so test files are not used by default | ||
# Remove these two in order to use folder settings in common config resulting in use of test profile and devices | ||
ProfilesDir: . | ||
DevicesDir: . |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
# Pre-define Devices | ||
DeviceList: | ||
- Name: Modbus-TCP-test-device | ||
ProfileName: 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 | ||
Protocols: | ||
modbus-tcp: | ||
Address: 0.0.0.0 | ||
Port: 1502 | ||
UnitID: 1 | ||
Timeout: 5 | ||
IdleTimeout: 5 | ||
AutoEvents: | ||
- Interval: 20s | ||
OnChange: false | ||
SourceName: HVACValues | ||
- Name: Modbus-RTU-test-device | ||
ProfileName: 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 RTU | ||
Protocols: | ||
modbus-rtu: | ||
Address: /tmp/slave | ||
UnitID: 1 | ||
BaudRate: 19200 | ||
DataBits: 8 | ||
StopBits: 1 | ||
Parity: 'N' | ||
Timeout: 5 | ||
IdleTimeout: 5 | ||
# Pre-define Devices | ||
- Name: Modbus-TCP-Read-String | ||
ProfileName: Test-Device-Modbus-String-Profile | ||
Description: use for auto read a string value | ||
labels: | ||
- modbus TCP | ||
Protocols: | ||
modbus-tcp: | ||
Address: 0.0.0.0 | ||
Port: 1502 | ||
UnitID: 1 | ||
Timeout: 5 | ||
IdleTimeout: 5 | ||
AutoEvents: | ||
- Interval: 20s | ||
OnChange: false | ||
SourceName: ReadString |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters