This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

can add two custom uuid (sd_ble_uuid_vs_add)

Hi, Nordic

I want to add ble_dfu service in my app, my own app will add my custom ble service.

So in service_init() function, ble_dfu_init first callback, then my own ble service xxx_init.

my own ble service xxx also use sd_ble_uuid_vs_add, it return 4 (not 0).

So fata error.

I check ble_dfu service, it also use sd_ble_uuid_vs_add, can it add ble_dfu and my own ble service?

delete ble_dfu or my own ble service, it work fine.

Parents
  • When you initialize the SoftDevice using ble_stack_init, the default ble_enable_params are set using softdevice_enable_get_default_config. If you go to the definition, you'll see that

    p_ble_enable_params->common_enable_params.vs_uuid_count   = 1;
    

    With this configuration you can only add one vendor specific UUID to the BLE stack's UUID table. However, if you set .vs_uuid_count to 2, i.e.

    p_ble_enable_params->common_enable_params.vs_uuid_count   = 2;
    

    you can add two vendor specific UUIDs to the table,i.e. your custom UUID and the DFU service UUID base.

    Best regards

    Bjørn

  • Which function called in ble_advertising_init() returns the NRF_ERROR_DATA_SIZE error code?

Reply Children
No Data
Related