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

add multi custom uuid (sd_ble_uuid_vs_add)

hi all, i have some issue about this . when i add second vendor uuid call sd_ble_uuid_vs_add. that uuid_type. the uuid_type always get 0x03 value. by the BLE_UUID_TYPES should be 0x00~0x02.

Can anyone have same issue about this? and how to solution this?

p.s : S120 1.0.1 sdk v6.1

Parents
  • I do not see the issue here, whenever you create a vendor specific UUID type, a new UUID type gets created. This type starts from 0x02 (BLE_UUID_TYPE_VENDOR_BEGIN) and will increase for the next UUID created to 0x03 etc.

    If you only want vendor specific UUID type 0x02, then you should use this call only once and then use the type created with a 16 bit offset to create new UUIDs.

    Remember the call only creates the type and not the full UUID.

    See the documentation for more details.

Reply
  • I do not see the issue here, whenever you create a vendor specific UUID type, a new UUID type gets created. This type starts from 0x02 (BLE_UUID_TYPE_VENDOR_BEGIN) and will increase for the next UUID created to 0x03 etc.

    If you only want vendor specific UUID type 0x02, then you should use this call only once and then use the type created with a 16 bit offset to create new UUIDs.

    Remember the call only creates the type and not the full UUID.

    See the documentation for more details.

Children
No Data
Related