Skip to content

Commit

Permalink
fixup! examples/nanocoap: add blockwise handler example
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspar030 committed Mar 13, 2018
1 parent 9f81cfa commit 969fb19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/nanocoap_server/coap_handler.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ssize_t _sha256_handler(coap_pkt_t* pkt, uint8_t *buf, size_t len, void *context
int blockwise = coap_get_block1(pkt, &block1);

printf("_sha256_handler(): received data: offset=%u len=%u blockwise=%i more=%i\n", \
block1.offset, pkt->payload_len, blockwise, block1.more);
(unsigned)block1.offset, pkt->payload_len, blockwise, block1.more);

if (block1.offset == 0) {
puts("_sha256_handler(): init");
Expand Down

0 comments on commit 969fb19

Please sign in to comment.