[riot-notifications] [RIOT-OS/RIOT] net/coap: Add Link Format attributes to resources (#11328)

Leandro Lanzieri notifications at github.com
Tue Apr 2 12:06:48 CEST 2019

### Contribution description
This PR implements the 'Static Case' part of https://github.com/RIOT-OS/RIOT/issues/11171#issuecomment-478348346 proposed by @kb2ma. It is marked as RFC as the discussion is ongoing, but I created this to have an idea of how it could look like.

It provides a way to (optionally by `NANOCOAP_CLIF_STATIC`) add Link Format encoded attributes to CoAP resources. This attributes are used for `/.well-known/core` resource discovery and resource directory registration. Later on this can also be used for resource filtering.

The resource encoding is done manually now but if #11189 gets merged it could be used instead.

### Testing procedure
Run `examples/gcoap` application, replies to GET requests to `/.well-known/core` now should also include the resources Link Format attributes, if defined.

### Issues/PRs references
Discussion in #11171 
Could eventually use #11189 
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * sys/net/nanocoap: Add LF parameters to resource
  * sys/net/gcoap: Use resource LF parameters
  * examples/gcoap: Use resource description by default

-- File Changes --

    M examples/cord_ep/main.c (6)
    M examples/cord_epsim/main.c (6)
    M examples/gcoap/Makefile (3)
    M examples/gcoap/gcoap_cli.c (8)
    M examples/nanocoap_server/coap_handler.c (15)
    M sys/include/net/gcoap.h (15)
    M sys/include/net/nanocoap.h (4)
    M sys/net/application_layer/gcoap/gcoap.c (57)
    M tests/nanocoap_cli/request_handlers.c (3)

-- Patch Links --


You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190402/66d4b32e/attachment.html>

More information about the notifications mailing list