go-coap
go-coap copied to clipboard
Support block wise transfer options
This PR adds helper methods to check/get/set Block1 and Block2 options as defined in RFC 7959[0].
[0] https://tools.ietf.org/html/rfc7959
This is the second PR. I have closed the previous one due to errors in IsBlock1
IsBlock2
methods. This PR contains the fixed code and adds a new test that tests for the error.