Can not connect to certain device on Linux (device not found, but scanning does find it) #1658
Replies: 2 comments 1 reply
-
No, this only applies to things like Docker containers, not Python virtual envs.
Not sure without seeing logs. Logging Bluetooth packets is the best way to see what is going on behind the scenes. |
Beta Was this translation helpful? Give feedback.
-
Logging with Bleak's logging feature or Wireshark records? I did both without seeing an error condition (though I don't speak "bluetooth"), but am happy to provide the logs, if you may want to look at them. |
Beta Was this translation helpful? Give feedback.
-
I'm doing the same on Windows and Linux with two different BLE peripherals (Bleak version 0.22.2):
find_device_by_name
to get theBLEDevice
objectBLEDevice
object obtained from 1./home/
directoryA. This works fine for both devices when running the code on Windows (Win 10)
B. This works fine for one device when running the code on Linux (Ubuntu 22.04), but the other fails with a "device not found" exception. This also fails when using the MAC address instead of the
BLEDevice
object.I wonder if I'm a victim of this Linux 'feature' that I don't understand:
If so, what would I need to do exactly in my Python code to work around this?
Beta Was this translation helpful? Give feedback.
All reactions