commit | 421ecb77a3b57efaed5c02691073685d1765d4b4 | [log] [tgz] |
---|---|---|
author | Pieter De Gendt <pieter.degendt@basalte.be> | Fri Oct 22 12:05:55 2021 +0200 |
committer | Anas Nashif <anas.nashif@intel.com> | Wed Oct 27 13:46:19 2021 -0400 |
tree | 6e52cd336e3945970afae2ab42be50d80b07549f | |
parent | b966ba16a9a391a3559cbfd58c50134ec1eaedc2 [diff] |
net: coap: Add coap_next_block_for_option function Add a function to update the coap block context from a packet, according to the block option enum provided. The existing coap_next_block does not handle block1 transfers properly because we need to inspect the block1 option returned by the server. This function is reworked to make use of the newly introduced one. Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>