org.bluez.NetworkπŸ”—

BlueZ D-Bus Network API documentationπŸ”—

Version:

BlueZ

Date:

October 2023

Manual section:

5

Manual group:

Linux System Administration

InterfaceπŸ”—

Service:

org.bluez

Interface:

org.bluez.Network1

Object path:

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

MethodsπŸ”—

string Connect(string uuid)πŸ”—

Connects to the network device and return the network interface name.

Possible uuid values:

β€œpanu”, β€œ00001115-0000-1000-8000-00805f9b34fb”:

Personal Network User role.

β€œnap”, β€œ00001116-0000-1000-8000-00805f9b34fb”:

Network Access Point role.

β€œgn”, β€œ00001117-0000-1000-8000-00805f9b34fb”:

Group Network role.

The connection will be closed and network device released either upon calling Disconnect() or when the client disappears from the message bus.

Possible errors:

org.bluez.Error.InvalidArguments:

org.bluez.Error.NotSupported:

org.bluez.Error.InProgress:

org.bluez.Error.Failed:

void Disconnect()πŸ”—

Disconnects from the network device.

To abort a connection attempt in case of errors or timeouts in the client it is fine to call this method.

Possible errors:

org.bluez.Error.Failed:

org.bluez.Error.NotConnected:

PropertiesπŸ”—

boolean Connected [readonly]πŸ”—

Indicates if the device is connected.

string Interface [readonly, optional]πŸ”—

Indicates the network interface name when available.

string UUID [readonly, optional]πŸ”—

Indicates the connection role when available.