Address filter with various peripherals

I use the nrf5340.

I want to filter 8 devices with different addresses.

When scan_filter_match() recognizes one of the addresses, can you quickly identify which of the addresses entered (1 to 8)?

I saw that 'filter_match->addr.addr' reports the recognized address: should I make a comparison with all my 8 addresses?

Thank you

Parents
  • Hello,

    It should be possible to add multiple address filters by increasing the CONFIG_BT_SCAN_ADDRESS_CNT setting. You can add CONFIG_BT_SCAN_ADDRESS_CNT=8 to your project configuration file to support 8 address filters. However, filtering on a static address will not work if you are connected to privacy-enabled Central devices that use a periodically changing private address. Are these other devices implemented by you, and do you support bonding in your application?

    Best regards,

    Vidar

Reply
  • Hello,

    It should be possible to add multiple address filters by increasing the CONFIG_BT_SCAN_ADDRESS_CNT setting. You can add CONFIG_BT_SCAN_ADDRESS_CNT=8 to your project configuration file to support 8 address filters. However, filtering on a static address will not work if you are connected to privacy-enabled Central devices that use a periodically changing private address. Are these other devices implemented by you, and do you support bonding in your application?

    Best regards,

    Vidar

Children
Related