[riot-notifications] [RIOT-OS/RIOT] gcoap: improve block-wise transfer API. (#16715)

Martine Lenders notifications at github.com
Thu Aug 5 16:05:14 CEST 2021


#### Description
<!-- Please describe your use case, why you need this feature and why this
feature is important for RIOT. -->
After working a bit with block-wise transfer in both `gcoap` and `libcoap`, I kind of hate how block-wise transfer is handled in `gcoap`. A lot of work is already taken of once shoulder by using the slicer (which is also non-obvious, because there are no examples for that in the repo), but still there is a lot of in-depth knowledge about RFC 7959 required to enable you to exchange large data. `libcoap` solves quiet nicely (but still far from perfect), by having `_large_` versions of functions that could require block-wise transfer that hide most of the mechanics of block-wise transfer from the user. A similar user-friendly approach would be desirable. 

### Useful links
- https://libcoap.net/doc/reference/develop/man_coap_block.html

<!-- Please include links to any documentation that you think is useful. -->

<!-- Thanks for contributing! -->


-- 
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/issues/16715
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210805/ff66721b/attachment-0001.htm>


More information about the notifications mailing list