"discovered_devices_and_advertisement_data" doesn't return dictionary #1323
-
According to the docs, the I am trying to use it to get the advertisement data after finding a device by name, but I get an error. Here is the code:
I get the following output (Windows 10):
It definitely finds my BLE device, and I can use the returned "device" object to create a client and connect. I also tried Am I using this property incorrectly? Have I made a stupid Python error?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Please give #1277 a 👍 to show your support for this use case. |
Beta Was this translation helpful? Give feedback.
discovered_devices_and_advertisement_data
is an instance property, so it can't be used this way since you aren't creating an instance ofBleakScanner
.Please give #1277 a 👍 to show your support for this use case.