From: Mikel Astiz <mikel.astiz@xxxxxxxxxxxx> Make use of the newly introduced helper function in bluezutils.py to parse the command line UUID argument for "connect" and "disconnect" operations. --- test/test-device | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test-device b/test/test-device index 3d7b852..b5f8f96 100755 --- a/test/test-device +++ b/test/test-device @@ -99,7 +99,7 @@ if (args[0] == "connect"): else: device = bluezutils.find_device(args[1], options.dev_id) if (len(args) > 2): - device.ConnectProfile(args[2]) + device.ConnectProfile(bluezutils.parse_uuid(args[2])) else: device.Connect() sys.exit(0) @@ -110,7 +110,7 @@ if (args[0] == "disconnect"): else: device = bluezutils.find_device(args[1], options.dev_id) if (len(args) > 2): - device.DisconnectProfile(args[2]) + device.DisconnectProfile(bluezutils.parse_uuid(args[2])) else: device.Disconnect() sys.exit(0) -- 1.8.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html