Hi,
I had a problem while testing using the app_app_uart.
I added custom service and set tx buffer size to 70.
I tested using nRF Connect.
And, i got error message like below.
If i set buffer size to 75, the error is not occurred.
I want to minimize buffer size.
Is not possible small buffer size in ble_app_uart?
- MIN_CONN_INTERVAL : 7.5
- MAX_CONN_INTERVAL : 12
memset(&add_char_params, 0, sizeof(add_char_params));
add_char_params.uuid = BLE_UUID_BRAIN_DATA_NIRS;
add_char_params.max_len = 70;
add_char_params.init_len = 70;
add_char_params.p_init_value = init_data_buffer;
add_char_params.is_var_len = true;
add_char_params.char_props.notify = p_brain_init->nirsd_noti_state;
add_char_params.cccd_write_access = p_brain_init->nirsd_cccd_wr_sec;
add_char_params.char_props.read = 1;
add_char_params.read_access = p_brain_init->nirsd_rd_sec;
err_code = characteristic_add(p_brain->service_handle, &add_char_params, &(p_brain->brain_nirs_data_handles));
if (err_code != NRF_SUCCESS)
{
return err_code;
}
- mcu : nRF52832
- sdk : 17.0.0
- softdevice : 7.0.1