Skip to content

Conversation

nandojve
Copy link
Member

Any CoAP implementation when use at least block transfer or is a server side need access some CoAP options as integer values. This add a method at public interface and defines for block wise operations to avoid code useless code duplication.

This refactor below files:
subsys/net/lib/lwm2m/lwm2m_engine.c
samples/net/sockets/coap_server/src/coap-server.c

The motivation is #25558 that needs same approach already implemented at sample and LWM2M.

@nandojve
Copy link
Member Author

CC @otavio

@zephyrbot zephyrbot added area: Networking area: API Changes to public APIs area: Samples Samples labels May 28, 2020
@zephyrbot
Copy link

zephyrbot commented May 28, 2020

All checks are passing now.

Tip: The bot edits this comment instead of posting a new one, so you can check the comment's history to see earlier messages.

@pfalcon pfalcon requested review from mike-scott and removed request for pfalcon May 28, 2020 07:28
Copy link
Member

@jukkar jukkar left a comment

Choose a reason for hiding this comment

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

The changes look ok to me, couple of minor nits for commit subjects.

Copy link
Contributor

@rlubos rlubos left a comment

Choose a reason for hiding this comment

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

LGTM, just please align with Jukka's comments.

@nandojve nandojve force-pushed the coap_get_option_int branch from 187557d to 85d4d98 Compare May 29, 2020 01:45
Copy link
Contributor

@mike-scott mike-scott left a comment

Choose a reason for hiding this comment

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

LGTM

@jukkar
Copy link
Member

jukkar commented Jun 8, 2020

@nandojve can you rebase the PR and resolve the conflicts?

nandojve added 4 commits June 8, 2020 18:36
Any CoAP implementation when use at least block transfer or is a server
side need access some CoAP options as integer values. This add a method
at public interface and defines for block wise operations to avoid code
useless code duplication.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Clean up and remove macros that uses coap_get_option_int.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Small clean-up to use coap_get_option_int.

Signed-off-by: Gerson Fernando Budke <[email protected]>
Small clean-up to use coap_get_option_int.

Signed-off-by: Gerson Fernando Budke <[email protected]>
@nandojve nandojve force-pushed the coap_get_option_int branch from 83dcf1a to d28897c Compare June 8, 2020 21:43
@nandojve
Copy link
Member Author

nandojve commented Jun 9, 2020

Rebased, chackpatch is not related with the change 'tests/kernel/lifo/lifo_usage'

@jukkar jukkar merged commit ebe5345 into zephyrproject-rtos:master Jun 9, 2020
@nandojve nandojve deleted the coap_get_option_int branch June 10, 2020 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lib: updatehub: Corrupted updated when receiving CoAP duplicate packages
6 participants