org.bluez.Bearer.LEπŸ”—

BlueZ D-Bus Bearer LE API documentationπŸ”—

Version:

BlueZ

Date:

July 2025

Manual section:

5

Manual group:

Linux System Administration

InterfaceπŸ”—

Service:

org.bluez

Interface:

org.bluez.Bearer.LE1

Object path:

[variable prefix]/{hci0,hci1,…}/dev_{BDADDR}

MethodsπŸ”—

void Connect()πŸ”—

Connects all LE profiles the remote device supports that can be connected to and have been flagged as auto-connectable. If only subset of profiles is already connected it will try to connect currently disconnected ones.

If at least one profile was connected successfully this method will indicate success.

Possible errors:

org.bluez.Error.NotReady:

org.bluez.Error.Failed:

org.bluez.Error.InProgress:

org.bluez.Error.AlreadyConnected:

void Disconnect()πŸ”—

Disconnects all connected profiles and then terminates low-level ACL-LE connection.

ACL-LE connection will be terminated even if some profiles were not disconnected properly e.g. due to misbehaving device.

This method can be also used to cancel a preceding Connect call before a reply to it has been received.

For non-trusted devices connected calling this method will disable incoming connections until Connect method is called again.

Possible errors:

org.bluez.Error.NotConnected:

int16 ReadRSSI() [testing]πŸ”—

Reads the Received Signal Strength Indicator of the current connection on LE bearer from the controller, in dBm, for diagnostics and production testing.

Available only when D-Bus testing interfaces are enabled.

The kernel caches the value for a few seconds, so calls made in quick succession may return the same value. Right after the connection is established, while it is still being set up, the method fails with org.bluez.Error.NotReady.

Possible errors:

org.bluez.Error.NotConnected:

org.bluez.Error.NotReady:

org.bluez.Error.NotAvailable:

org.bluez.Error.Failed:

SignalsπŸ”—

void Disconnected(string reason, string message)πŸ”—

This signal is launched when a device is disconnected, with the reason of the disconnection.

This could be used by client application, depending on internal policy, to try to reconnect to the device in case of timeout or unknown disconnection, or to try to connect to another device.

Possible reasons:

org.bluez.Reason.Unknown:

org.bluez.Reason.Timeout:

Connection timeout.

The link supervision timeout has expired for a connection or the synchronization timeout has expired for a broadcast.

org.bluez.Reason.Local:

Connection terminated by local host.

The local device terminated the connection, terminated synchronization with a broadcaster, or terminated broadcasting packets.

org.bluez.Reason.Remote:

Connection terminated by remote host.

This disconnection can be due to:

  • the user on the remote device either terminated the connection or stopped broadcasting packets,

  • the remote device terminated the connection because of low resources,

  • the remote device terminated the connection because the device is about to power off.

org.bluez.Reason.Authentication:

Connection terminated due to an authentication failure.

org.bluez.Reason.Suspend:

Connection terminated by local host for suspend.

PropertiesπŸ”—

object Adapter [readonly]πŸ”—

The object path of the adapter the set belongs to.

boolean Paired [readonly]πŸ”—

Indicates if the remote device is paired to LE bearer.

Paired means the pairing process where devices exchange the information to establish an encrypted connection has been completed.

boolean Bonded [readonly]πŸ”—

Indicates if the remote device is bonded to LE bearer.

Bonded means the information exchanged on pairing process has been stored and will be persisted.

boolean Connected [readonly]πŸ”—

Indicates if the remote device is currently connected to LE bearer.

A PropertiesChanged signal indicate changes to this status.

boolean Connectable [readonly, optional]πŸ”—

Indicates if the remote device accepts connections on LE bearer, based on the most recent advertising report. It is false when the last advertising report was non-connectable, e.g. ADV_NONCONN_IND or ADV_SCAN_IND.

The property is only present once the device has been discovered or connected over LE bearer.

A PropertiesChanged signal indicate changes to this status.

string Role [readonly, optional]πŸ”—

Indicates the role of the remote device in the current connection on LE bearer. It is only present while the remote device is connected over LE bearer.

It is the link layer role of the connection. It does not imply which side acts as GATT client or server, as GATT roles are independent of it and both may be used at the same time.

Possible values:

β€œcentral”:

The remote device initiated the connection, and the adapter is the peripheral.

β€œperipheral”:

The adapter initiated the connection, and the remote device is the peripheral.

A PropertiesChanged signal indicate changes to this status.

uint32 Interval [readonly, optional]πŸ”—

Indicates the connection interval of the current connection on LE bearer, in microseconds. It is only present while the remote device is connected over LE bearer.

A PropertiesChanged signal indicate changes to this status.

uint16 Latency [readonly, optional]πŸ”—

Indicates the peripheral latency of the current connection on LE bearer, the number of consecutive connection events the peripheral may skip. When the connection is subrated, it counts subrated connection events. It is only present while the remote device is connected over LE bearer.

A PropertiesChanged signal indicate changes to this status.

uint16 SupervisionTimeout [readonly, optional]πŸ”—

Indicates the supervision timeout of the current connection on LE bearer, in milliseconds. It is only present while the remote device is connected over LE bearer.

A PropertiesChanged signal indicate changes to this status.

uint16 Subrate [readonly, optional]πŸ”—

Indicates the subrate factor of the current connection on LE bearer: only one of every Subrate connection events is used. It is 1 when the connection is not subrated. It is only present while the remote device is connected over LE bearer.

A PropertiesChanged signal indicate changes to this status.