pub unsafe extern "C" fn coap_put_block1_ok(
    pkt_pos: *mut u8,
    block1: *mut coap_block1_t,
    lastonum: u16
) -> size_t
Expand description

@brief Insert block1 option into buffer (from coap_block1_t)

This function is wrapper around @ref coap_put_option_block1(), taking its arguments from a coap_block1_t struct.

It will write option Nr. 27 (COAP_OPT_BLOCK1).

It is safe to be called when @p block1 was generated for a non-blockwise request.

@param[in] pkt_pos buffer to write to @param[in] block1 ptr to block1 struct (created by coap_get_block1()) @param[in] lastonum last option number (must be < 27)

@returns amount of bytes written to @p pkt_pos