-
Notifications
You must be signed in to change notification settings - Fork 2k
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
pkg/libcoap: Add in libcoap CoAP library support #19889
base: master
Are you sure you want to change the base?
Conversation
3dc435e
to
a04974a
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.
Just a couple of minor suggestions below to get rid of the warnings.
fd8dd7f
to
0e71780
Compare
a83ac87
to
53a12f4
Compare
Is there anything I need to do here to progress this? |
2cebb3c
to
d1b223e
Compare
@chrysn could you maybe have a look? |
239cd10
to
f6e909c
Compare
I guess I do not understand why the Murdock test build failed for libcoap - |
This is correct behavior. The We do have two platforms where Note that Hence, But given that this bug is likely upstream, you could just add |
Thanks for the information, It looks like only a compile issue in one place, which I will get fixed shortly. |
I only took a quick peek, but this looks good to me. @chrysn might be interested in this, as this would also provide an alternative implementation of OSCORE. One thing: Most (if not all) of the KConfig parts can be dropped now, (see https://forum.riot-os.org/t/last-chance-for-kconfig-dependency-modelling/4068 for details). Selection of modules and packages and the dependency resolution via KConfig has been removed from upstream; but you can still use KConfig to expose configuration knobs (such as buffer sizes, ports to listen on, etc.). I can take an in-depth look tomorrow, if you think this is ready for review? Would be cool to get this back in :) |
I have just found an OSCORE issue that needs to get fixed. I will fix this and have everything pushed for Monday.
I will look at doing this, probably not by Monday though. |
Just pushed the fix. Do you want all these commits squashed? |
Do as you prefer. Some other maintainers are a bit picky about when to squash, but I only look at the diff to upstream (or to when I last checked). So as long as only I am reviewing, you can squash (or not squash) during the review as works best for you. |
@maribu I have just pushed libcoap v4.3.5rc1 for review. I have left in the Kconfig stuff for now - certainly users can just modify |
libcoap version 4.3.5rc3. Using Sock interface. Includes a CoAP client and CoAP server example. tests/pkg/libcoap: Simple CoAP over DTLS loopback test.
Contribution description
Adds in support for using the libcoap CoAP library with version 4.3.4, as per https://github.com/obgm/libcoap with documentation at https://libcoap.net/doc/reference/develop/ .
pkg/libcoap
contains the information for the libcoap library to be included and built as appropriate.examples/libcoap-client
provides an example CoAP client.examples/libcoap-server
provides an example CoAP server.pkg/Kconfig
updated to include libcoap.Testing procedure
test/pkg/libcoap provided which does a loop-back test with libcoap client logic sending request to libcoap server logic and sanity checks the response.
Issues/PRs references
None, other than adding in new functionality.