{
struct read_long_op *op = data;
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ util_debug(op->client->debug_callback, op->client->debug_data,
+ "destroy read_long_op(%p)", op);
+#endif
+
if (op->destroy)
op->destroy(op->user_data);
goto done;
}
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ if (!op)
+ return;
+#endif
+
if ((!op->offset && opcode != BT_ATT_OP_READ_RSP)
|| (op->offset && opcode != BT_ATT_OP_READ_BLOB_RSP)
|| (!pdu && length)) {
put_le16(op->value_handle, pdu);
put_le16(op->offset, pdu + 2);
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ util_debug(op->client->debug_callback, op->client->debug_data,
+ "resend with op(%p)", op);
+#endif
+
err = bt_att_resend(op->client->att, req->att_id,
BT_ATT_OP_READ_BLOB_REQ,
pdu, sizeof(pdu),
att_op = BT_ATT_OP_READ_REQ;
}
+#ifdef TIZEN_FEATURE_BLUEZ_MODIFY
+ util_debug(client->debug_callback, client->debug_data,
+ "Read long value with op(%p) and att_op(0x%x)", op, att_op);
+#endif
+
req->att_id = bt_att_send(client->att, att_op, pdu, pdu_len,
read_long_cb, req, request_unref);