Blob: org.bluez.obex.Client.rst

Blob id: c4e03f9e970772e41976037c94cf0d36567bb946

Size: 1.4 KB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
=====================
org.bluez.obex.Client
=====================

-----------------------------------------
BlueZ D-Bus OBEX Client API documentation
-----------------------------------------

:Version: BlueZ
:Date: October 2023
:Manual section: 5
:Manual group: Linux System Administration

Interface
=========

:Service:	org.bluez.obex
:Interface:	org.bluez.obex.Client1
:Object path:	/org/bluez/obex

Methods
-------

object CreateSession(string destination, dict args)
```````````````````````````````````````````````````

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

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

Possible args values:

:string Target:

	Type of session to be created.

	Possible values:

	:"ftp":
	:"map":
	:"opp":
	:"pbap":
	:"sync":
	:"bip-avrcp":

:string Source:

	Local address to be used.

:byte Channel:

	Channel to be used.

:uint16 PSM:

	L2CAP PSM to be used.

Possible errors:

:org.bluez.obex.Error.InvalidArguments:
:org.bluez.obex.Error.Failed:

void RemoveSession(object session)
``````````````````````````````````

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

Possible errors:

:org.bluez.obex.Error.InvalidArguments:
:org.bluez.obex.Error.NotAuthorized: