Hello,
I am using nrf52840 and sdk15. I have enabled read and write authentication and am having trouble accessing all of the data from p_ble_evt->evt.gatts_evt.params.authorize_request.request.write.data. Similarly the len value seems to always be 2. Lastly, am also trying to write 32 bytes, is this possible in one write? Below is the characteristic configuration.
static uint32_t security_char_add(status_serv_t * p_status_serv)
{
ble_add_char_params_t add_char_params;
VERIFY_PARAM_NOT_NULL(p_status_serv);
memset(&add_char_params, 0, sizeof(add_char_params));
add_char_params.uuid = SECURITY_UUID;
add_char_params.uuid_type = 0;
add_char_params.max_len = 32;
add_char_params.char_props.read = 1;
add_char_params.char_props.write = 1;
add_char_params.read_access = SEC_JUST_WORKS;
add_char_params.write_access = SEC_JUST_WORKS;
add_char_params.is_defered_read = 1;
add_char_params.is_defered_write = 1;
return characteristic_add(p_status_serv->service_handle, &add_char_params, &p_status_serv->security_handles);
}
Thanks in advanced,
Bloq