Hello,
I am just using the SDK13 on the nRF52832 together with the experimental BDS example (I modified it to the point where it seems to be working fine so far).
Now when using uint8-array as data-type for a writeable characteristic, the mcu always performed a reset.
As far as I've found, the function bds_uint8_array_decode
performs a memcpy
to p_decoded_val->p_data
, which is a null-pointer at the time being called.
The the utf8-string decode function bds_ble_srv_utf8_str_decode
just performs a simple p_decoded_val->p_str = (uint8_t*)p_encoded_data;
which looks perfectly fine to me (and works as expected).
Just doing this in the bds_uint8_array_decode
function works fine as well.
So my real question:
Is this an error in bds_uint8_array_decode
or made like this on purpose?
Are there other (better) solutions to this, which should be used?
Thanks for your help Marco