ble_att_svr_tx_rsp() function
Transmits a response or error message over the specified connection. The specified rc and err_status values control what gets sent as follows: o If rc == 0: tx an affirmative response. o Else if err_status != 0: tx an error response. o Else: tx nothing. In addition, if transmission of an affirmative response fails, an error is sent instead.
Arguments
conn_handle
The handle of the connection to send over.
hs_status
The status indicating whether to transmit an affirmative response or an error.
att_op
If an error is transmitted, this is the value of the error message's op field.
err_status
If an error is transmitted, this is the value of the error message's status field.
err_handle
If an error is transmitted, this is the value of the error message's attribute handle field.