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

How to filter devices with UUID

I want to filter the peripheral devices with part of the UUID.

Consider my uuid is {0x01, 0x12, 0x23, 0x34, 0x45, 0x56, 0x67, 0x78, 0x89, 0x9a, 0xab, 0x47, 0x4E, 0x44, 0x00, 0x01 }

In this last 2bytes will be changing for each device. I need to filter the devices with the remaining14 byte UUID details.

How to do this?

Parents
  • Hi,

    Which SDK version are you using, and which example are you basing your application on?

    I'm not aware of any such functionality in the SDK, the closest is that you can add scan filters to single (complete) UUIDs in SDK 15.2 and 15.3.

    You will just have to extract the UUID from the received advertising packet, and compare the relevant parts of it to your UUID filter.

    Best regards,
    Jørgen

Reply
  • Hi,

    Which SDK version are you using, and which example are you basing your application on?

    I'm not aware of any such functionality in the SDK, the closest is that you can add scan filters to single (complete) UUIDs in SDK 15.2 and 15.3.

    You will just have to extract the UUID from the received advertising packet, and compare the relevant parts of it to your UUID filter.

    Best regards,
    Jørgen

Children
Related