[riot-notifications] [RIOT-OS/RIOT] net/nanocoap: get option bytes (#12075)

chrysn notifications at github.com
Wed Sep 11 16:24:16 CEST 2019


As a replacement for the coap_opt_get_next construction from a pointer, I suggest we add an option iteration initializer that'd work from coap_find_option. Thus, single options would be accessed using this `coap_opt_get_opaque(pkt, optnum, ptr)`, but repeated ones using `coap_opt_seek(pkt, optnum, &optpos)`, and can then be read single-file by `coap_opt_get_next(pkt, &optpos, &value, false)`.

-- 
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/12075#issuecomment-530404277
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190911/b423f173/attachment.htm>


More information about the notifications mailing list