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

[Course Task] Doc devicetwin #280

Merged
merged 2 commits into from
Dec 22, 2022
Merged

Conversation

jxs1211
Copy link
Contributor

@jxs1211 jxs1211 commented Dec 11, 2022

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    docs update

  • What is the current behavior? (You can also link to an open issue here)
    none

  • What is the new behavior (if this is a feature change)?
    123

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)
    none

  • Other information:
    none

@kubeedge-bot kubeedge-bot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Dec 11, 2022
@jxs1211
Copy link
Contributor Author

jxs1211 commented Dec 11, 2022

/assign @fisherxu

@wackxu
Copy link
Contributor

wackxu commented Dec 15, 2022

please rebase your branch with master

1671073226346

@jxs1211
Copy link
Contributor Author

jxs1211 commented Dec 15, 2022

please rebase your branch with master

1671073226346

updated

Signed-off-by: xian-jie.shen <[email protected]>
- The device attribute updation is initiated from the cloud, which sends the update to edgehub.
- The edgehub component sends the message to the device twin controller which forwards the message to the device module.
- The device module updates the device attribute details into the database after which, the device module sends the result of the device attribute update to be published
to the eventbus component through the communicate module of devicetwin. The eventbus component further publishes the result on the specified topic.

![Device Update](/img/devicetwin/device-update.png)

**dealDeviceStateUpdate**: dealDeviceStateUpdate() deals with the operations to be performed when a device status update is encountered.
It updates the state of the device as well as the last online time of the device in the database.
It also sends the update state result, through the communication module, to the cloud through the edgehub module and to the eventbus module which in turn
publishes the result on the specified topic of the MQTT broker.
Copy link
Member

Choose a reason for hiding this comment

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

Could you also fix the indent here?

Copy link
Member

@kevin-wangzefeng kevin-wangzefeng left a comment

Choose a reason for hiding this comment

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

/lgtm
/approve

@kubeedge-bot kubeedge-bot added the lgtm Indicates that a PR is ready to be merged. label Dec 22, 2022
@kubeedge-bot
Copy link
Collaborator

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kevin-wangzefeng

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

The pull request process is described 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 approved Indicates a PR has been approved by an approver from all required OWNERS files. label Dec 22, 2022
@kubeedge-bot kubeedge-bot merged commit 47c7bc6 into kubeedge:master Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants