This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

VS UUIDs with S130 1.0.0-3.alpha

Hi all

I tried to add a vendor specific 128bit UUID with the function sd_ble_uuid_vs_add. It worked and I received the custom UUID type (0x02). Afterwards I tried to add the same UUID again and I expected to receive the status NRF_ERROR_FORBIDDEN, but I received the status NRF_SUCCESS and the same custom UUID type as before (0x02). Is this a bug in the 1.0.0-3.alpha version of the S130 or is the description of this function wrong?

Another question is if this VS UUID list can be cleared somehow? Or can this list only filled with UUIDs once?

Thanks in advance!

  • Hi there,

    First of all, thanks for reporting this.

    I see there is a mistake in the documentation of this function. In reality when you add an UUID that you have already added, you will get NRF_SUCCESS and you will get its type in p_uuid_type. That allows you to add it multiple times (perhaps from multiple modules) and still each module getting the exact same type.

    Apologies for the mistake in the documentation, we will fix this internally ASAP.

    Edit: Replying to your additional questions: No, you cannot clear (or remove UUIDs from) the list at all. The only way to clear it is to disable and then re-enable the SD via sd_softdevice_disable() and then sd_softdevice_enable() and sd_ble_enable(). You can however add UUIDs at any time during SD execution.

    Thanks,

    Carles

Related