diff options
| -rw-r--r-- | network/network-api.txt | 14 | ||||
| -rwxr-xr-x | network/test-network | 6 | 
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  | 
