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

BLE_ADVERTISING with Custom service

Hi there,

I have added my custom services in the peripheral dfu_template example.In the advertising UUID array(m_adv_uuids),i included custom service UUID but not the dfu UUID and in services init function both dfu and custom application service is include.still it is advertising and and updated the firmware successfully.Is it advertise even we don't include the service in advertising init function.

Thank you.

  • Hi,

    What are you using for performing the DFU (updating the firmware)? It may be that the tool does not look for the DFU UUID in the advertising packet, but checks that the service is there, after creating a connection (when doing service discovery). Putting the service UUID in the advertising data is not mandatory, but it is useful to help scanners decide which services are supported without creating a connection with the device.

    Best regards,
    Jørgen

Related