forked from edgexfoundry/device-rest-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!: Changed configuration and simple-devices files format to YAML
BREAKING CHANGE: Configuration and sample-devices files are now in YAML format closes issue edgexfoundry#280 Signed-off-by: Valina Li <[email protected]>
- Loading branch information
Showing
8 changed files
with
133 additions
and
110 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,23 @@ | ||
MaxEventSize: 0 # value 0 unlimit the maximum event size that can be sent to message bus or core-data | ||
|
||
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: | ||
Host: localhost | ||
Port: 59986 | ||
StartupMsg: device rest started | ||
|
||
MessageBus: | ||
# Host: localhost # uncomment when running from command-line in hybrid mode | ||
Optional: | ||
ClientId: device-rest | ||
Driver: {} |
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,44 @@ | ||
# Pre-define Devices | ||
DeviceList: | ||
- Name: sample-json | ||
ProfileName: sample-json | ||
Description: RESTful Device that sends in JSON data | ||
Labels: | ||
- rest | ||
- json | ||
Protocols: | ||
other: {} | ||
- Name: sample-image | ||
ProfileName: sample-image | ||
Description: RESTful Device that sends in binary image data | ||
Labels: | ||
- rest | ||
- binary | ||
- image | ||
Protocols: | ||
other: {} | ||
- Name: sample-numeric | ||
ProfileName: sample-numeric | ||
Description: RESTful Device that sends in numeric data | ||
Labels: | ||
- rest | ||
- numeric | ||
- float | ||
- int | ||
Protocols: | ||
other: {} | ||
- Name: 2way-rest-device | ||
ProfileName: sample-2way-rest-device | ||
Description: RESTful Device that sends data | ||
Labels: | ||
- rest | ||
- 2way-rest-device | ||
Protocols: | ||
REST: | ||
Host: 127.0.0.1 | ||
Port: '5000' | ||
Path: api | ||
# AutoEvents: | ||
# - Interval: 20s | ||
# OnChange: false | ||
# SourceName: int8 |
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