[−][src]Function libcoap_sys::coap_send_ack
pub unsafe extern "C" fn coap_send_ack(
session: *mut coap_session_t,
request: *mut coap_pdu_t
) -> coap_tid_t
Sends an ACK message with code @c 0 for the specified @p request to @p dst. This function returns the corresponding transaction id if the message was sent or @c COAP_INVALID_TID on error.
@param session The CoAP session. @param request The request to be acknowledged.
@return The transaction id if ACK was sent or @c COAP_INVALID_TID on error.