how to delete duplicate BLE device

72 views
Skip to first unread message

bluebt

unread,
Apr 12, 2023, 7:59:38 AM4/12/23
to btstack-dev
When scanning, how to delete duplicate BLE device display, I found a function gap_set_scan_duplicate_filter(1); found invalid after calling.

1.png

Matthias Ringwald

unread,
Apr 13, 2023, 6:49:15 AM4/13/23
to btsta...@googlegroups.com
Hi bluebt

Could you explain what happens after you call gap_set_scan_duplicate_filter(1).
it depends on the Bluetooth Controller how well it filters duplicates, e.g. or how many items it can cache.

I would recommend to keep a list or bd_addr in your application, and only report a new device if it's not already in the list.

Best
Matthias

> On 12 Apr 2023, at 13:59, bluebt <qq1438...@gmail.com> wrote:
>
> When scanning, how to delete duplicate BLE device display, I found a function gap_set_scan_duplicate_filter(1); found invalid after calling.
>
> <1.png>
>
> --
> You received this message because you are subscribed to the Google Groups "btstack-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to btstack-dev...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/btstack-dev/375b75b2-0eae-462b-b86a-521598bef902n%40googlegroups.com.
> <1.png>

Reply all
Reply to author
Forward
0 new messages