-
Notifications
You must be signed in to change notification settings - Fork 8k
lib: coap: Add coap_get_option_int public method #25683
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
lib: coap: Add coap_get_option_int public method #25683
Conversation
CC @otavio |
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. |
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.
The changes look ok to me, couple of minor nits for commit subjects.
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, just please align with Jukka's comments.
187557d
to
85d4d98
Compare
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
85d4d98
to
83dcf1a
Compare
@nandojve can you rebase the PR and resolve the conflicts? |
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]>
83dcf1a
to
d28897c
Compare
Rebased, chackpatch is not related with the change 'tests/kernel/lifo/lifo_usage' |
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.