org.bluez.obex.Client(5) Linux System Administration org.bluez.obex.Client(5)

# [Name](#Name)

org.bluez.obex.Client - BlueZ D-Bus OBEX Client API documentation

# [Interface](#Interface)

[**Service**](#Service)

org.bluez.obex

[**Interface**](#Interface~2)

org.bluez.obex.Client1

[**Object path**](#Object)

/org/bluez/obex

## [Methods](#Methods)

## [object CreateSession(string destination, dict args)](#object_CreateSession%28string_destination,_dict_args%29)

Connects to the destination address and then proceed to create an OBEX session object which implements [**org.bluez.obex.Session(5)**](/man/os/bluez/org.bluez.obex.Session.5) interface.

The last parameter is a dictionary to hold optional or type-specific parameters.

Possible args values:

[**string Target**](#string)

Type of session to be created.

Possible values:

**"ftp"**

**"map"**

**"opp"**

**"pbap"**

**"sync"**

**"bip-avrcp"**

[**string Source**](#string~2)

Local address to be used.

[**byte Channel**](#byte)

Channel to be used.

[**uint16 PSM**](#uint16)

L2CAP PSM to be used.

Possible errors:

[**org.bluez.obex.Error.InvalidArguments**](#org.bluez.obex.Error.InvalidArguments)

[**org.bluez.obex.Error.Failed**](#org.bluez.obex.Error.Failed)

## [void RemoveSession(object session)](#void_RemoveSession%28object_session%29)

Disconnects and removes session previously created by **CreateSession()** aborting any pending transfers.

Possible errors:

[**org.bluez.obex.Error.InvalidArguments**](#org.bluez.obex.Error.InvalidArguments~2)

[**org.bluez.obex.Error.NotAuthorized**](#org.bluez.obex.Error.NotAuthorized)

October 2023 BlueZ

---

Document: org.bluez.obex.Client(5) from bluez 5.87-r1 (Chainguard OS)
Source: https://github.com/bluez/bluez
