mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 13:44:23 +08:00
Update test script with last PANU connection
This commit is contained in:
parent
8e0d20842a
commit
b93e2bf23c
@ -50,7 +50,7 @@ Methods string CreateServer(string uuid)
|
||||
|
||||
Removes a network connection object for a given path.
|
||||
|
||||
Possible errors:org.bluez.network.Error.DoesNotExist
|
||||
Possible errors: org.bluez.network.Error.DoesNotExist
|
||||
org.bluez.network.Error.Failed
|
||||
|
||||
array{string} ListConnections()
|
||||
@ -61,7 +61,7 @@ Methods string CreateServer(string uuid)
|
||||
|
||||
Returns connection path.
|
||||
|
||||
Possible errors:org.bluez.network.Error.DoesNotExist
|
||||
Possible errors: org.bluez.network.Error.DoesNotExist
|
||||
org.bluez.network.Error.Failed
|
||||
|
||||
string LastConnection()
|
||||
@ -69,19 +69,19 @@ Methods string CreateServer(string uuid)
|
||||
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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user