Hello.
I have NRF52-DK and nRF52840-Dongle.
I have custom service this large characteristics (81 byte length). I want to use AUTHORIZE REQUEST Write and Read.
I use nRF Connect for Desktop for read and write characteristics. Read always successful, but write possible only 1 to 20 bytes. If i try write more, nRF Connect suspended for few time and show "Received a Gatt timeout" message.
My init code:
ble_gatts_attr_md_t attr_md ={ {0}};
BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&attr_md.read_perm);
BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM(&attr_md.write_perm);
attr_md.vloc = BLE_GATTS_VLOC_STACK;
attr_md.wr_auth = 1;
attr_md.rd_auth = 1;
ble_gatts_char_md_t char_md = {{0}};
char_md.char_props.read = 1;
char_md.char_props.write = 1;
ble_uuid_t uuid = {ACS_UUID_CHAR, bleACS.uuid_type};
ble_gatts_attr_t attr_char_value = {0};
attr_char_value.p_uuid = &uuid;
attr_char_value.p_attr_md = &attr_md;
attr_char_value.init_len = 81;
attr_char_value.max_len = 81;
attr_char_value.p_value = (uint8_t*)data;
err_code = sd_ble_gatts_characteristic_add(
bleACS.service_handle,
&char_md,
&attr_char_value,
&bleService.char_handles);
