node-coap-client icon indicating copy to clipboard operation
node-coap-client copied to clipboard

Support specifying a preferred block size for server responses

Open AlCalzone opened this issue 8 years ago • 1 comments

As defined in https://tools.ietf.org/html/rfc7959#section-2.4, clients can specify a preferred block size for the responses from the CoAP server by using the Block2 option on a request.

This size should be configurable in the library. When used with block-wise requests, the Block2 option should only appear in the last fragment, as defined in https://tools.ietf.org/html/rfc7959#section-2.7

  • [x] Specify blocksize
  • [ ] Support combination with block-wise requests

AlCalzone avatar Dec 18 '17 11:12 AlCalzone

1st bullet point implemented in 2cf786d

AlCalzone avatar Dec 19 '17 14:12 AlCalzone