Table of Contents

Migrating to 0.4 API

This page describes obex-data-server API changes between versions 0.3.4 and 0.4 and how to migrate to the new API.

The main API change is that Session.Connected() signal was removed. Manager.SessionConnected and Manager.SessionConnectError signals must be used instead. CreateBluetoothSession now has additional source_address argument. Lots of reverse compatible API additions (mostly new functionality for BIP profile). See 0.4 API documentation for information how to use new API methods/signals.

org.openobex.Manager

Changed

CreateBluetoothSession method now has additional source_address argument for specifying Bluetooth adapter to be used for Session (use “00:00:00:00:00:00” for default adapter). Application needs to start listening to SessionConnected and SessionConnectError signals before calling this method.

Removed

Use SessionClosed signal instead.

New

SessionConnected signal is emitted when Session is connected to target device.

Emitted when Session connection fails. Session object must not be used after that.

Emitted when Session is closed and no longer valid.

org.openobex.Session

Removed

Connect method was removed because OBEX Connect is done automatically when underlying transport is connected.

Connected signal was removed because of race conditions it caused. Use SessionConnected and SessionConnectError signals from Manager object.

New

org.openobex.Server

New

org.openobex.ServerSession

New