Examples for using AdvertisementFilter in BleakScannerDotNet #590
-
Hello, I would just like to ask if I can get some code examples on how to use the AdvertisementFilter for BleakScannerDotNet. I am currently involved in a project that aims to detect the BLE device name without knowing the Bluetooth Address. If someone can point me to some code, it will be very much appreciated. Sincerely, Marvin Neil |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I would suggest using BleakScanner.find_device_by_filter(). Here is an example program. (However if you need to match two things and one is in the advertising data packet and one is in the scan response packet, it won't work on Windows currently - on my todo list.) |
Beta Was this translation helpful? Give feedback.
-
Hello @dlech Thank you for your reply. I'll try first with BleakScanner.find_device_by_filter(). Sincerely, Marvin Neil |
Beta Was this translation helpful? Give feedback.
I would suggest using BleakScanner.find_device_by_filter(). Here is an example program. (However if you need to match two things and one is in the advertising data packet and one is in the scan response packet, it won't work on Windows currently - on my todo list.)