pub unsafe extern "C" fn gcoap_encode_link(
resource: *const coap_resource_t,
buf: *mut c_char,
maxlen: size_t,
context: *mut coap_link_encoder_ctx_t,
) -> ssize_t
Expand description
@brief Writes a resource in CoRE Link Format to a provided buffer.
This default implementation only writes the resource path.
@param[in] resource resource to write @param[out] buf output buffer to write link into, may be null @param[in] maxlen length of @p buf, ignored if @p buf is NULL @param[in] context other parameters that affect how link is written
@return count of bytes written to @p buf (or writable if @p buf is null) @return -1 on error