/* Handles an incoming "attribute data" entry from a read-by-type response for the specified read-using-characteristic-uuid proc.  */
static int ble_gattc_read_uuid_rx_adata(struct ble_gattc_proc *proc, struct ble_att_read_type_adata *adata)
/* Handles an incoming "attribute data" entry from a read-by-type response for the specified read-using-characteristic-uuid proc.  */
static int ble_gattc_read_uuid_rx_adata(struct ble_gattc_proc *proc, struct ble_att_read_type_adata *adata)
{
    struct ble_gatt_attr attr;
    int rc;
    ble_gattc_dbg_assert_proc_not_inserted(proc);
    attr.handle = adata->att_handle;
    attr.offset = 0;
    attr.om = ble_hs_mbuf_from_flat(adata->value, adata->value_len);
    if (attr.om == NULL) {
        rc = BLE_HS_ENOMEM;
    } else {
        rc = 0;
    }
    rc = ble_gattc_read_uuid_cb(proc, rc, 0, &attr);
    os_mbuf_free_chain(attr.om);
    if (rc != 0) {
        return BLE_HS_EDONE;
    }
    return 0;
}