[riot-notifications] [RIOT-OS/RIOT] net/nanocoap: add subtree handler (#11436)

Kaspar Schleiser notifications at github.com
Wed Apr 24 13:51:21 CEST 2019


### Contribution description

This PR adds a method to have subtrees consisting of coap_resource_t arrays.
#11098 added path prefix matching, this PR allows path prefixes to be defined in their own coap_resoucrce_t[].
Use-case is a module defining several endpoints grouped in a subtree.

I consider this a first iteration. Subtrees have no way of being listed in ".well-known/core", yet.

### Testing procedure

run examples/nanocoap_server, get "subtree/riot/ver".

### Issues/PRs references

#11098
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/11436

-- Commit Summary --

  * sys/net/nanocoap: add subtree handler
  * examples/nanocoap_server: add subtree example

-- File Changes --

    M examples/nanocoap_server/coap_handler.c (12)
    M sys/include/net/nanocoap.h (14)
    M sys/net/application_layer/nanocoap/nanocoap.c (35)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/11436.patch
https://github.com/RIOT-OS/RIOT/pull/11436.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11436
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190424/c3fd02ed/attachment.html>


More information about the notifications mailing list