[Model] All
[BinType] AP
[Customer] OPEN
[Issue#] P200428-04425
[Request] Internal
[Occurrence Version] N/A
[Problem] Some application call bt_gatt_client_write_value() repeately. (Write req)
If gatt client app call API before callback invoked,
inprogress error is not returned.
[Cause & Measure] ATT is sequential transaction protocol. So return inprogress error
before write completed callback invoked.
[Checking Method] n/a
[Team] Convergence BT
[Developer] Injun Yang
[Solution company] Samsung
[Change Type] Specification change
Change-Id: I76eb97e124a739990d3210c3f3c3fa7354b605f1
Signed-off-by: Wootak Jung <wootak.jung@samsung.com>
&chr_handle,
&write_data,
BLUETOOTH_GATT_TYPE_WRITE));
+ if (ret == BT_ERROR_NONE)
+ _bt_set_cb(BT_EVENT_GATT_CLIENT_WRITE_CHARACTERISTIC, callback, NULL);
} else if (chr->write_type == BT_GATT_WRITE_TYPE_WRITE_NO_RESPONSE) {
ret = _bt_get_error_code(
bluetooth_gatt_client_write_characteristic_value_by_type(
BT_INFO("GATT Char Write Clalback result [%d]", result);
+ _bt_unset_cb(BT_EVENT_GATT_CLIENT_WRITE_CHARACTERISTIC);
+
if (result != BLUETOOTH_ERROR_NONE) {
char_prop2 = (bluetooth_gatt_client_char_prop_info_t*)resp;
char *device_addr = NULL;