[riot-notifications] [RIOT-OS/RIOT] net/nanocoap: write struct-based block1 option (#10702)

Ken Bannister notifications at github.com
Sat Jan 5 01:14:44 CET 2019

### Contribution description
Adds a function to write a block1 option using the struct-based nanocoap API.

### Testing procedure
See the [gcoap-block](https://github.com/kb2ma/applications/tree/kb2ma-master/gcoap-block) server app. It is equivalent to the nanocoap_server example, and includes an `/sha256` resource. The handler writes a block1 option in the responses. Note that the RIOTBASE variable in `Makefile` does not use the RIOT submodule.

For a more complete test, see pytest-based [block1_test](https://github.com/kb2ma/riot-coap-pytest/blob/master/block1_test.py).

### Issues/PRs references
Part of the implementation of #9309.
You can view, comment on, or merge this pull request online at:


-- Commit Summary --

  * net/nanocoap: write struct-based block1 option

-- File Changes --

    M sys/include/net/nanocoap.h (14)
    M sys/net/application_layer/nanocoap/nanocoap.c (8)

-- Patch Links --


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/20190104/a7335ff0/attachment.html>

More information about the notifications mailing list