Update test script with last PANU connection

This commit is contained in:
Marcel Holtmann 2007-05-22 07:05:28 +00:00
parent 8e0d20842a
commit b93e2bf23c
2 changed files with 13 additions and 7 deletions

View File

@ -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

View File

@ -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