[riot-notifications] [RIOT-OS/RIOT] nanocoap: add coap_opt_put_uri() (#15830)

chrysn notifications at github.com
Thu Jan 21 17:16:20 CET 2021

Given our CoAP messages are built for sequential option addition, I think that the better course here would be to parse the URI once, and then have the different functions to apply the components to a message.

For some applications it may be convenient to have a convenience function that sets all options, but that should be documented to be a convenience function equivalent to calling this particular list of functions, so that users who do need to add options inbetween can switch over easily.

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/20210121/67c5e92d/attachment.htm>

More information about the notifications mailing list