pkg/libcoap: Add in libcoap CoAP library support#19889
Conversation
3dc435e to
a04974a
Compare
JKRhb
left a comment
There was a problem hiding this comment.
Just a couple of minor suggestions below to get rid of the warnings.
fd8dd7f to
0e71780
Compare
a83ac87 to
53a12f4
Compare
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 |
|
Hi, I may have found a bug (or an issue easy to solve). I was able to flash both examples for RIOT successfully, each one on a nRF52840DK console. Having libCoAP server started in a Pyterm console:
While the libCoAP client is activated on another console. There is ping between them. But when I do the following request for resource time (which is defined in I get: I don’t know why the URI is not being submitted. This format doesn't work as well: Grateful for any clues! |
|
Looks like this change is needed - I will get it fixed |
|
It looks like something has gone wrong in the latest rebase, as unrelated commits are now showing up. Could you just do another rebase on top of |
|
Just pulled latest I see that Murdock has a failure that needs to be fixed, which I will do now. |
crasbe
left a comment
There was a problem hiding this comment.
Thank you for picking up the PR again. Some things (style related) have changed since the original PR was submitted, so some updates and migrations have to be applied before merging.
The comments I gave are only exemplary, please adapt the remaining files yourself given the patterns.
|
Is there a way to stop As in I have added |
|
@crasbe seems to work fine. @mrdeep1 Is it expected behavior that |
This works for me provided the interface number is correct (was 5 also for me) and a valid IPv6 address is entered for where a server is running. Brief Help documentation on usage has now been added to the client and server. |
crasbe
left a comment
There was a problem hiding this comment.
Second (and last?) review round with more style related comments.
libcoap version develop #244b0c2be4b3d30e62f0c13a51a845046b3e69ac Using Sock interface. examples/networking/libcoap 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/libcoapcontains the information for the libcoap library to be included and built as appropriate.examples/libcoap-clientprovides an example CoAP client.examples/libcoap-serverprovides an example CoAP server.pkg/Kconfigupdated 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.