All of lore.kernel.org
 help / color / mirror / Atom feed
* Does the DBUS API prevent obtaining GATT information without a connection?
@ 2023-06-15 14:36 Jake Rue
  0 siblings, 0 replies; only message in thread
From: Jake Rue @ 2023-06-15 14:36 UTC (permalink / raw)
  To: linux-bluetooth

I was looking for a newer and more supported way of collecting GATT
information, rather than gatttool, which I understand to be
deprecated. I was looking at bleak (https://github.com/hbldh/bleak) as
a potential python-based wrapper.

However, when I try to use it to collect information from an AppleTV
which I can collect successfully with gatttool, it errors out with
"bleak.exc.BleakDBusError: [org.bluez.Error.Failed]
br-connection-unknown". I eventually tried the same thing with
bluetoothctl and it gave the same-ish error of "Failed to connect:
org.bluez.Error.Failed br-connection-unknown".

So the difference seems to be that bleak/bluetoothctl try to connect
to the AppleTV (which it rejects, if I don't go accept the pairing on
the TV itself), whereas gatttool doesn't make a full
connection/pairing attempt?

The bleak developers said that this is a limitation of the DBUS API,
and that there's no way to get GATT information without a connection.
Is that correct?

Cheers - Jake

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-15 14:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-15 14:36 Does the DBUS API prevent obtaining GATT information without a connection? Jake Rue

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.