-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Upgrade core-contracts lib to use redesigned device profile #816
Conversation
Codecov Report
@@ Coverage Diff @@
## master #816 +/- ##
==========================================
- Coverage 31.56% 31.36% -0.20%
==========================================
Files 33 33
Lines 2265 2257 -8
==========================================
- Hits 715 708 -7
+ Misses 1497 1496 -1
Partials 53 53
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
- { deviceResource: "SwitchButton" } | ||
set: | ||
- { deviceResource: "SwitchButton", parameter: "false" } | ||
readWrite: "W" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The original sample is RW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified.
@@ -81,7 +81,7 @@ RetryWaitPeriod = "1s" | |||
[[DeviceList.AutoEvents]] | |||
Frequency = '10s' | |||
OnChange = false | |||
SourceName = 'Switch' | |||
SourceName = 'SwitchButton' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need to make this change if it is RW
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified.
openapi/v2/device-sdk.yaml
Outdated
type: integer | ||
description: "A Unix timestamp indicating when the object was last modified" | ||
description: | ||
apiVersion: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
apiVersion will only be in request, response, and event
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed the apiVersion
from the device profile schema.
@weichou1229 please help resolve the conflict |
Upgrade core-contracts lib to apply the v2 device profile changes: - Upgrade core-contracts lib to use the redesigned device profile - Update swagger file Close #815 Signed-off-by: weichou <[email protected]>
Close #815 Signed-off-by: weichou <[email protected]>
Rebased and resolved the conflict. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…gexfoundry#816) * feat: Upgrade core-contracts lib to use redesigned device profile Upgrade core-contracts lib to apply the v2 device profile changes: - Upgrade core-contracts lib to use the redesigned device profile - Update swagger file Close edgexfoundry#815 Signed-off-by: weichou <[email protected]>
Close #815
PR Checklist
Please check if your PR fulfills the following requirements:
If your build fails due to your commit message not passing the build checks, please review the guidelines here: https://github.com/edgexfoundry/device-sdk-c/blob/master/.github/CONTRIBUTING.md
What is the current behavior?
Issue Number: #815
What is the new behavior?
Upgrade core-contracts lib to apply the v2 device profile changes:
Does this PR introduce a breaking change?
New Imports
Specific Instructions
Other information