net: lib: coap: Service support#64265
Merged
carlescufi merged 14 commits intozephyrproject-rtos:mainfrom Nov 9, 2023
Merged
Conversation
eeaaa9a to
d4382e3
Compare
jukkar
reviewed
Oct 24, 2023
53a4089 to
a99c48c
Compare
rlubos
reviewed
Oct 24, 2023
02e9ce9 to
04757c7
Compare
jukkar
reviewed
Oct 24, 2023
rlubos
previously approved these changes
Oct 25, 2023
kartben
previously approved these changes
Nov 8, 2023
cfriedt
reviewed
Nov 8, 2023
Fixed a typo to include DOXYGEN generated documentation. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add length variant for the well known core resource and parsing. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add URI path matching function to public CoAP API. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add function to check if CoAP packet is a request to the public API. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add a CoAP helper function to find a matching observer by token. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Change coap_remove_observer to return the result of removing the observer if found. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
This commit adds the option to register an event handler to CoAP resources when observers are added/removed. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add CoAP services and server as a subsystem implementation. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add shell commands that allow to start/stop CoAP services. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add a test for CoAP macro usage. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Replaced the CoAP server example with CoAP services. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Created a dedicated page for CoAP service and resource examples. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
The CoAP documentation has server/clients sample usages, added a note about the available subsystems that can be used instead. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
Add a note to the 3.6 migration guide about the CoAP API changes introduced with the CoAP server subsystem. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
cfriedt
approved these changes
Nov 8, 2023
rlubos
approved these changes
Nov 9, 2023
jukkar
approved these changes
Nov 9, 2023
Desvauxm-st
added a commit
to Desvauxm-st/zephyr
that referenced
this pull request
Nov 29, 2023
due to this PR: net: lib: coap: Service support zephyrproject-rtos#64265 we add harness: coap Signed-off-by: Marc Desvaux <marc.desvaux-ext@st.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces CoAP services (similar to HTTP services) and a CoAP server implementation.
Note: the CoAP Server sample was copied as everything remains backwards compatible.If this isn't desired it can be removed in favor of CoAP services.