-
Notifications
You must be signed in to change notification settings - Fork 91
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 (#445)
* refactor!: Change configuration and devices files format to YAML BREAKING CHANGE: Configuration and devices files are now in YAML format closes issue #444 Signed-off-by: Valina Li <valina.li@intel.com>
- Loading branch information
Showing
9 changed files
with
134 additions
and
130 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 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,26 @@ | ||
Writable: | ||
LogLevel: INFO | ||
|
||
# uncomment when running from command-line in hybrid mode with -cp -o flags | ||
# Registry: | ||
# Host: localhost | ||
|
||
# Clients: | ||
# core-metadata: | ||
# Host: localhost | ||
|
||
Service: | ||
Host: localhost | ||
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
Oops, something went wrong.