[riot-notifications] [RIOT-OS/RIOT] net/nanocoap: get option bytes (#12075)
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:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the notifications