You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Similar to BleakScanner.discover() we also need a return_adv= argument added to the BleakScanner.find_device_by...() methods so we can get advertising data without using the deprecated BLEDevice.metadata.
This would be pretty handy for a specific use case I have. I'm using Bleak to fetch the Bluetooth address and RSSI of devices that we only know the name of. If I find two broadcasting at the same time, I want to give an error to the operator and if there are none broadcasting I want to discover it ASAP without having to wait. So my ideal flow would to do discover with 1s timeout and then do a longer find_device_by_name with a longer timeout. But I'm missing the advertisement data indeed to roll it out this simple. Thanks for the library though, super useful for my use case.
Similar to
BleakScanner.discover()
we also need areturn_adv=
argument added to theBleakScanner.find_device_by...()
methods so we can get advertising data without using the deprecatedBLEDevice.metadata
.https://bleak.readthedocs.io/en/latest/api/scanner.html#bleak.BleakScanner.discover
The text was updated successfully, but these errors were encountered: