Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF52 SDK 17.0.2 - Function ble_advdata_uuid_find can only find 128 Bit service uuids ?

Hi,

I noticed that the value raw_uuid_len in function ble_advdata_uuid_find() in module ble_advdata.c is fixed at the value UUID128_SIZE.

So the function can only find vendor specific uuids with 128Bits.

For explanation. In my project I try to find peripherals that offer the Nordic DFU service  that has the 16Bit UUID 0xFE59. This fails because of the described behavior.

When I set the value raw_uuid_len to UUID16_SIZE the Nordic DFU service can therefore be found in the advertising data of the peripherals.

Is the fixed value for raw_uuid_len in function ble_advdata_uuid_find() a bug or is it wanted like that ?

Or am I doing something wrong?

Thanks in advance.

Related