Method "Connect" with signature "" doesn't exist -> cannot pair device
See original GitHub issue- bleak version: 0.5.1
- Python version: 3.7.6
- Operating System: Raspbian with Linux kernel 4.19.75
- Hardware: Raspberry Pi 4B
- BlueZ version (
bluetoothctl -v
) in case of Linux: 5.50
Description
When trying to connect a custom BLE Device, I get the same error as in #55
org.freedesktop.DBus.Error.UnknownObject: Method "Connect" with signature "" on interface "org.bluez.Device1" doesn't exist
I use the discover beforehand but still get the error.
With the gatttool itself the connection is also not working. EXCEPT when I use the gatttool and set the addresstype to random (sudo gatttool -t random -b D8:80:05:21:2F:99 -I
). Then it works.
My idea was to use the BlueZ adapter-api call for ConnectDevice which can receive an AddressType of “random”. But further investigation showed me, that you didn’t implement this methode. And because I am trying to pair a device, I searched for the “Pair”-methode of the BlueZ device-api which is also not called from Bleak.
Can you please explain why that is and you online use the “Connect”-methode, and what can cause the Connect-signature problem?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (4 by maintainers)
Top GitHub Comments
I have been experiencing the same problems with a new device I have obtained. It only occurs in the BlueZ backend, unpaired. I can connect just fine to it from Windows without pairing, so it should not be needed. I will keep investigating, but I have no idea as to a solution right now…
@Illule Is that so. If you send in an address
AA:01:01:E1:80:02
bleak constructs the DBus object path here, called from theconnect
method, since it seemed that the path was constructed that way and that woudl avoid waiting for discovery of the path before connecting. It seems I have to revisit that decision…