/* Triggers a pending transmit for the specified read-long-characteristic proc.  */
static int ble_gattc_read_long_tx(struct ble_gattc_proc *proc)
/* Triggers a pending transmit for the specified read-long-characteristic proc.  */
static int ble_gattc_read_long_tx(struct ble_gattc_proc *proc)
{
    int rc;
    ble_gattc_dbg_assert_proc_not_inserted(proc);
    if (proc->read_long.offset == 0) {
        rc = ble_att_clt_tx_read(proc->conn_handle, proc->read_long.handle);
        if (rc != 0) {
            return rc;
        }
    } else {
        rc = ble_att_clt_tx_read_blob(proc->conn_handle,
                                      proc->read_long.handle,
                                      proc->read_long.offset);
        if (rc != 0) {
            return rc;
        }
    }
    return 0;
}