[−][src]Function libcoap_sys::coap_send
pub unsafe extern "C" fn coap_send(
session: *mut coap_session_t,
pdu: *mut coap_pdu_t
) -> coap_tid_t
Sends a CoAP message to given peer. The memory that is allocated by pdu will be released by coap_send(). The caller must not use the pdu after calling coap_send().
@param session The CoAP session. @param pdu The CoAP PDU to send.
@return The message id of the sent message or @c COAP_INVALID_TID on error.