[riot-notifications] [RIOT-OS/RIOT] net/nanocoap: add subtree handler (#11436)
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
You can view, comment on, or merge this pull request online at:
-- 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 --
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...
More information about the notifications