summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2007-05-22 07:05:28 +0000
committerMarcel Holtmann <marcel@holtmann.org>2007-05-22 07:05:28 +0000
commitb93e2bf23ca82984b2a5dea852b02967fc33ca3c (patch)
tree303deb8bb861e47986a755df24339cd9ca624d52
parent8e0d20842a9601e45cd191f1d190e18ebee2abb1 (diff)
Update test script with last PANU connection
-rw-r--r--network/network-api.txt14
-rwxr-xr-xnetwork/test-network6
2 files changed, 13 insertions, 7 deletions
diff --git a/network/network-api.txt b/network/network-api.txt
index 9a18085e..f925bc18 100644
--- a/network/network-api.txt
+++ b/network/network-api.txt
@@ -50,8 +50,8 @@ Methods string CreateServer(string uuid)
Removes a network connection object for a given path.
- Possible errors:org.bluez.network.Error.DoesNotExist
- org.bluez.network.Error.Failed
+ Possible errors: org.bluez.network.Error.DoesNotExist
+ org.bluez.network.Error.Failed
array{string} ListConnections()
@@ -61,27 +61,27 @@ Methods string CreateServer(string uuid)
Returns connection path.
- Possible errors:org.bluez.network.Error.DoesNotExist
- org.bluez.network.Error.Failed
+ Possible errors: org.bluez.network.Error.DoesNotExist
+ org.bluez.network.Error.Failed
string LastConnection()
Returns last connected connection path, if none is connected
fallback to last created connection.
- Possible errors:org.bluez.network.Error.DoesNotExist
+ Possible errors: org.bluez.network.Error.DoesNotExist
string DefaultConnection()
Returns default connection path.
- Possible errors:org.bluez.network.Error.DoesNotExist
+ Possible errors: org.bluez.network.Error.DoesNotExist
string ChangeDefaultConnection(string pattern)
Changes default connection path.
- Possible errors:org.bluez.network.Error.DoesNotExist
+ Possible errors: org.bluez.network.Error.DoesNotExist
Signals
diff --git a/network/test-network b/network/test-network
index fe83cd21..3719deaa 100755
--- a/network/test-network
+++ b/network/test-network
@@ -23,3 +23,9 @@ try:
'org.bluez.network.Server')
except:
pass
+
+try:
+ panu = dbus.Interface(bus.get_object(conn, network.LastConnection()),
+ 'org.bluez.network.Connection')
+except:
+ pass