Linux bluetooth development
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/3] Propagate disconnection reason
@ 2025-05-19 16:14 Frédéric Danis
  2025-05-19 16:14 ` [PATCH BlueZ 1/3] src/device: Add Disconnected signal to propagate " Frédéric Danis
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Frédéric Danis @ 2025-05-19 16:14 UTC (permalink / raw)
  To: linux-bluetooth

Currently a client application is informed of the disconnection by the
update of the Connected property to false.
This sends a Disconnected signal with the disconnection reason before
the property is updated.

This will help client application to know the reason for the
disconnection and to take appropriate action.

bluetoothctl is updated to display the disconnection reason on reception
of the signal.

This can be tested in bluetoothctl by disconnecting a device, which
generates:
[SIGNAL] org.bluez.Device1.Disconnected disconnection-local-host

Frédéric Danis (3):
  src/device: Add Disconnected signal to propagate disconnection reason
  doc/device: Add Disconnected signal
  client: Display disconnection reason

 client/main.c            | 20 ++++++++++++++++++++
 doc/org.bluez.Device.rst | 17 +++++++++++++++++
 src/adapter.c            | 13 ++++++++-----
 src/device.c             | 37 +++++++++++++++++++++++++++++++++++--
 src/device.h             |  3 ++-
 5 files changed, 82 insertions(+), 8 deletions(-)

-- 
2.43.0


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

end of thread, other threads:[~2025-05-20 10:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-19 16:14 [PATCH BlueZ 0/3] Propagate disconnection reason Frédéric Danis
2025-05-19 16:14 ` [PATCH BlueZ 1/3] src/device: Add Disconnected signal to propagate " Frédéric Danis
2025-05-19 17:56   ` Propagate " bluez.test.bot
2025-05-19 16:14 ` [PATCH BlueZ 2/3] doc/device: Add Disconnected signal Frédéric Danis
2025-05-19 16:44   ` Luiz Augusto von Dentz
2025-05-19 19:22     ` Bastien Nocera
2025-05-20  9:32       ` Frédéric Danis
2025-05-20 10:22         ` Bastien Nocera
2025-05-20  9:26     ` Frédéric Danis
2025-05-19 16:14 ` [PATCH BlueZ 3/3] client: Display disconnection reason Frédéric Danis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox