This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Last BLE_GATTC_EVT_WRITE_RSP does not contain handle

Hi,

I am working on with nrf52 with SD132 v2 SDK11 since we need serial bootloader.

I tried a gattc long write sequence to write 22 bytes. Everything works well, peer got data and response correctly. However, the last BLE_GATTC_EVT_WRITE_RSP for BLE_GATT_OP_EXEC_WRITE_REQ does not contain the characteristic's handle in ble_gattc_evt_write_rsp_t like those responses for BLE_GATT_OP_PREP_WRITE_REQ. Is this a bug in SD v2 or I misunderstand the flowchart ??

here is my write sequence

  1. op = BLE_GATT_OP_PREP_WRITE_REQ, offset = 0, len =18, handle = 37

    --> [BLE_GATTC_EVT_WRITE_RSP] handle = 37 ( op = BLE_GATT_OP_PREP_WRITE_REQ)

  2. op = BLE_GATT_OP_PREP_WRITE_REQ, offset = 18, len =4, handle = 37

    --> [BLE_GATTC_EVT_WRITE_RSP] handle = 37 ( op = BLE_GATT_OP_PREP_WRITE_REQ)

  3. op = BLE_GATT_OP_EXEC_WRITE_REQ, flag = BLE_GATT_EXEC_WRITE_FLAG_PREPARED_WRITE, offset = len = 0, handle = 37

    --> [BLE_GATTC_EVT_WRITE_RSP] handle = 0 ?? ( op = BLE_GATT_OP_EXEC_WRITE_REQ)

Related