[riot-notifications] [RIOT-OS/RIOT] sys/net/application_layer/nanocoap: Add path prefix option (#11098)

Kaspar Schleiser notifications at github.com
Mon Mar 4 22:18:28 CET 2019


@kb2ma thanks for the overview. Are you keeping notes? :wink:

>     * added the ability to parameterize a handler, but as I understand it the present PR takes a different approach by not requiring an explicit entry for every possible incoming path.

Well, in gcoap there's a list of resource(array) lists. Nanocoap doesn't have that. With the parameters and subtree handlers combined, it is possible to have a generic subtree handler handling a whole new coap_resource_t array, by passing it as context to the subtree handler. (In addition to having e.g., dynamic handlers).

In the long term I hope that any subsystem can register subtrees by just adding them to a static XFA...

-- 
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/11098#issuecomment-469425507
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190304/c56050e0/attachment-0001.html>


More information about the notifications mailing list