keith-cullen / FreeCoAP

An implementation of a CoAP client, a CoAP server and a HTTP/CoAP proxy with full DTLS support.
132 stars 38 forks source link

Variable Block Option Value size depending on the number of the block (NUM) #24

Closed PalmaITEM closed 6 years ago

PalmaITEM commented 6 years ago

Instead of using a constant size for block_val (3 bytes), we can save up to 2 bytes, which is relevant in constrained networks.

This is covered by the RFC in section 2.2.