-
Notifications
You must be signed in to change notification settings - Fork 156
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
Conversation
/assign @fisherxu |
c874588
to
924681f
Compare
Signed-off-by: xian-jie.shen <[email protected]>
924681f
to
01ae0db
Compare
- 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. |
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.
Could you also fix the indent here?
Signed-off-by: Kevin Wang <[email protected]>
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
/approve
[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 |
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