[PATCH BlueZ v2 0/3] Propagate disconnection reason

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

v1->v2: Propagate numerical reason instead of text one
	Improve documentation
	Display disconnect reason in numerical and text in bluetoothctl

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            | 40 ++++++++++++++++++++++++++++++++++
 doc/org.bluez.Device.rst | 47 ++++++++++++++++++++++++++++++++++++++++
 src/adapter.c            | 13 ++++++-----
 src/device.c             | 16 ++++++++++++--
 src/device.h             |  3 ++-
 5 files changed, 111 insertions(+), 8 deletions(-)

-- 
2.43.0





[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux