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

advertising custom data in standard services

We need to send some custom data in advertising packet. Is it possible to use 'ble_advdata_service_data_t' with UUID of a standard service (e.g. battery service or device information service) or is it necessary to get our own 16-bit UUID for this purpose?

Regards, Cyril.

  • The BT SIG specifies a set of standard UUID's for predefined set set of services and characteristics which is 16 bit.

    But if we has to advertise a custom service or custom characteristic we have to use the 128bit custom UUID's for this.

    For example of adding 128bit custom UUID ,refer to the example \nrf51822_v5.2.0\Board\nrf6310\device_firmware_updates\bootloader\

    and have a look at the service ble_dfu.c

  • If you just need to send data in the advertising packet and don't need to create a service and characteristics you can also use the manufacturers specific data field allowed in the advertising packet. We do this to allow our mobile app to display information from our device without having to perform a connection.

Related