All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/3] Add Connectable property to org.bluez.Device
@ 2026-09-28 22:38 Kevin Dewald
  2026-09-28 22:38 ` [PATCH BlueZ 1/3] org.bluez.Device: Add Connectable property Kevin Dewald
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Kevin Dewald @ 2026-09-28 22:38 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Kevin Dewald

bluetoothd records whether each advertising report was connectable,
from the Device Found event's Not Connectable flag, and uses it
internally, for example to pick the bearer to connect and to drop
temporary non-connectable devices when discovery stops. Applications
cannot read it over D-Bus, so they have to guess, e.g. from whether the
device has a name, which is wrong for named beacons and for unnamed
peripherals.

This series exposes it as a read-only Connectable property on
org.bluez.Device1, emitted when it first becomes known and whenever it
changes, and prints it in bluetoothctl info.

Tested with an nRF52840 switching between ADV_IND, ADV_SCAN_IND and
ADV_NONCONN_IND advertising: the property follows each change,
including PropertiesChanged in both directions on a device kept by
continuous discovery.

Kevin Dewald (3):
  org.bluez.Device: Add Connectable property
  device: Add Connectable property
  client: Print Connectable in info

 client/main.c            |  1 +
 doc/org.bluez.Device.rst | 11 +++++++++++
 src/device.c             | 36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 48 insertions(+)

-- 
2.54.0 (Apple Git-157)


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2026-10-01 15:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-28 22:38 [PATCH BlueZ 0/3] Add Connectable property to org.bluez.Device Kevin Dewald
2026-09-28 22:38 ` [PATCH BlueZ 1/3] org.bluez.Device: Add Connectable property Kevin Dewald
2026-09-29  2:19   ` Add Connectable property to org.bluez.Device bluez.test.bot
2026-09-28 22:38 ` [PATCH BlueZ 2/3] device: Add Connectable property Kevin Dewald
2026-09-28 22:38 ` [PATCH BlueZ 3/3] client: Print Connectable in info Kevin Dewald
2026-09-30 13:20 ` [PATCH BlueZ 0/3] Add Connectable property to org.bluez.Device Luiz Augusto von Dentz
2026-09-30 20:30   ` Kevin Dewald
2026-10-01 15:39     ` Luiz Augusto von Dentz

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.