blob: b02786e7bcba2d7a0af90b36e587c7598bd86d44 (
plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
Bluetooth serial service API description
****************************************
Copyright (C) 2006-2007 Marcel Holtmann <marcel@holtmann.org>
Manager hierarchy
=================
Interface org.bluez.serial.Manager
Object path /org/bluez/serial
Methods string CreateProxy(string uuid, string tty)
Creates a serial port proxy object.
Possible errors:org.bluez.serial.Error.InvalidArguments
org.bluez.serial.NotAvailable
org.bluez.serial.Failed
void RemoveProxy(string path) [experimental]
Removes the serial port proxy object for given path.
Possible errors:org.bluez.serial.Error.DoesNotExist
string CreatePort(string address, string pattern) [experimental]
Creates a serial port object.
Possible errors:org.bluez.serial.Error.InvalidArguments
org.bluez.serial.Error.ConnectionCanceled
org.bluez.serial.Error.ConnectionInProgress
org.bluez.serial.Error.ConnectionAttemptFailed
org.bluez.serial.Error.NotSupported
org.bluez.serial.Error.Failed
void RemovePort(string path) [experimental]
Removes the serial port object for given path.
Possible errors:org.bluez.serial.Error.DoesNotExist
array{string} ListPorts() [experimental]
Returns an array of available serial port paths.
array{string} ListProxies() [experimental]
Returns an array of available serial port proxy paths.
string ConnectService(string address, string pattern)
Connects to a specific RFCOMM based service on a
remote device and then creates a RFCOMM TTY
device for it. The RFCOMM TTY device is returned.
Possible errors:org.bluez.serial.Error.InvalidArguments
org.bluez.serial.Error.ConnectionCanceled
org.bluez.serial.Error.ConnectionInProgress
org.bluez.serial.Error.ConnectionAttemptFailed
org.bluez.serial.Error.NotSupported
org.bluez.serial.Error.Failed
void CancelConnectService(string address, string pattern)
Cancel a previous ConnectService method call.
Possible errors:org.bluez.serial.Error.InvalidArguments
org.bluez.serial.Error.ConnectionNotInProgress
void DisconnectService(string device)
Disconnect a RFCOMM TTY device that has been
created via the ConnectService method.
Possible errors:org.bluez.serial.Error.InvalidArguments
org.bluez.serial.Error.DoesNotExist
Signals void PortCreated(string path) [experimental]
void PortRemoved(string path) [experimental]
void ProxyCreated(string path) [experimental]
void ProxyRemoved(string path) [experimental]
void ServiceConnected(string device)
void ServiceDisconnected(string device)
Port hierarchy (experimental)
=============================
Interface org.bluez.serial.Port
Object path /org/bluez/serial/rfcomm*
Methods string GetAddress() [experimental]
Returns the Bluetooth address of the ending point.
string GetInfo() [experimental]
Returns the port properties.
Proxy hierarchy (experimental)
=============================
Interface org.bluez.serial.Proxy
Object path /org/bluez/serial/rfcomm*
Methods: string Enable() [experimental]
Register the serial proxy service record and start
listenning on the specified adapter/channel.
string Disable() [experimental]
Unregister the service record and stop listenning.
String GetInfo() [experimental]
Returns the proxy properties
|