pub unsafe extern "C" fn coap_block_finish(
    slicer: *mut coap_block_slicer_t,
    option: u16
) -> bool
Expand description

@brief Finish a block request (block1 or block2)

This function finalizes the block response header

Checks whether the more bit should be set in the block option and sets/clears it if required. Doesn’t return the number of bytes, as this function overwrites bytes in the packet rather than adding new.

@param[in] slicer Preallocated slicer struct to use @param[in] option option number (block1 or block2)

@return true if the more bit is set in the block option @return false if the more bit is not set the block option