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.
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.
Use SessionClosed signal instead.
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.
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.