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

add lwM2M gateway design #879

Merged
merged 10 commits into from
Oct 11, 2024
Merged

add lwM2M gateway design #879

merged 10 commits into from
Oct 11, 2024

Conversation

rhoninl
Copy link
Collaborator

@rhoninl rhoninl commented Apr 18, 2024

What this PR does / why we need it:
for deviceshifu only support http protocol and telemetryservice is hard to support lwM2M which protocol have pull and push at the same time
Will this PR make the community happier?
yes
Which issue this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close that issue when PR gets merged): fixes #

How is this PR tested

  • unit test
  • e2e test
  • other (please specify)
    documentation no need test
    Special notes for your reviewer:

Release note:

- add lwM2M gateway design

Copy link
Contributor

@tomqin93 tomqin93 left a comment

Choose a reason for hiding this comment

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

@rhoninl added some comments

docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
@rhoninl rhoninl requested a review from tomqin93 April 19, 2024 05:16
Copy link
Contributor

@tomqin93 tomqin93 left a comment

Choose a reason for hiding this comment

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

@rhoninl added some comments, please take a look

docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Show resolved Hide resolved
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.93%. Comparing base (1d41155) to head (b1825d3).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #879       /-   ##
==========================================
  Coverage   37.60%   37.93%    0.33%     
==========================================
  Files          46       46              
  Lines        2976     2976              
==========================================
  Hits         1119     1129       10     
  Misses       1737     1730       -7     
  Partials      120      117       -3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@tomqin93 tomqin93 left a comment

Choose a reason for hiding this comment

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

@rhoninl added some comments, please take a look

docs/design/gateway/lwM2M-gateway.md Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
docs/design/gateway/lwM2M-gateway.md Outdated Show resolved Hide resolved
tomqin93
tomqin93 previously approved these changes Oct 10, 2024
1. Start the LwM2M client and obtain all device information from deviceShifu.
2. Register the device with the server and update the device information.
3. Handle requests from the server.
4. If the server enables the Observe feature, notify the server when data changes or a timeout occurs.
Copy link
Contributor

Choose a reason for hiding this comment

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

which timeout? do you mean there is an interval can be configured?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The interval is configured by the LwM2M server, but it resets whenever the data changes. i think interval is not good for this

Copy link
Contributor

@kris21he kris21he left a comment

Choose a reason for hiding this comment

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

LGTM

@tomqin93 tomqin93 merged commit a829673 into main Oct 11, 2024
6 checks passed
@tomqin93 tomqin93 deleted the add_lwM2M_gateway_design branch October 11, 2024 07:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants