dustin / go-coap

Implementation of CoAP in go.
MIT License
342 stars 103 forks source link

Support block wise transfer options #56

Open besedad opened 5 years ago

besedad commented 5 years ago

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.