Skip to content
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

Clean up of some issues. #20

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

sailorvii
Copy link
Collaborator

What type of PR is this?
/kind bug

What this PR does / why we need it:

  1. The value type of twin could not be written as "integer" but "int".
  2. Add notice for opcua usage.

Which issue(s) this PR fixes:
Fixes #19 #9

@kubeedge-bot kubeedge-bot added the kind/bug Categorizes issue or PR as related to a bug. label Apr 15, 2021
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please assign sailorvii after the PR has been reviewed.
You can assign the PR to them by writing /assign @sailorvii in a comment when ready.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@kubeedge-bot kubeedge-bot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Apr 15, 2021

There's a bug about gopcua library. https://github.com/gopcua/opcua/issues/410.
If you want to use username&password mode, please modify the file as this:
vendor/github.com/gopcua/opcua/uasc/secure_channel_crypto.go line 67:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

link to the original source?

@@ -51,10 +51,10 @@ status:
reported:
metadata:
timestamp: '1550049403598'
type: integer
type: int
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not quite sure if we have any testcase to verify this.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, there's no automated test to verify mappers. It's on the TODO list.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file edge/pkg/devicetwin/dtcommon/util.go function ValidateValue check the metadata type, it should be int, but not integer

@kubeedge-bot kubeedge-bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Apr 16, 2021
@kubeedge-bot
Copy link
Collaborator

@sailorvii: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@kubeedge-bot kubeedge-bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Apr 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Modbus&opcua device example configuration issue.
4 participants