Hi all
I'm trying to send 180 bytes using sd_ble_gattc_write(). Writing 20 bytes at a time with the BLE_GATT_OP_WRITE_REQ write_op works. But now I'm trying to speed things up by sending packets of 18 bytes each with BLE_GATT_OP_PREP_WRITE_REQ and then execute it with BLE_GATT_OP_EXEC_WRITE_REQ . sd_ble_gattc_write does not return with an error . But the BLE_GATTC_EVT_WRITE_RSP event returns with gatt_status 0x0182. Can't find out what 0x0182 means. Any idea?
write_params.handle = m_nus_rx_char_handle;
write_params.flags = 0;
write_params.len = 18;
write_params.p_value = m_txPtr;
write_params.write_op = BLE_GATT_OP_PREP_WRITE_REQ;
write_params.offset = current_offset; // 0 for first call
err_code = sd_ble_gattc_write(m_adapter, m_connection_handle, &write_params);