* [PATCH BlueZ] test: Update simple-agent to new API
@ 2012-12-17 22:48 João Paulo Rechi Vita
2012-12-17 23:23 ` Marcel Holtmann
0 siblings, 1 reply; 2+ messages in thread
From: João Paulo Rechi Vita @ 2012-12-17 22:48 UTC (permalink / raw)
To: linux-bluetooth; +Cc: João Paulo Rechi Vita
The method org.bluez.Device.Pair() doesn't have arguments anymore. This
commit fixes the following error:
$ test/simple-agent hci0 4C:B1:99:F1:BC:E9
Agent registered
ERROR:dbus.connection:Unable to set arguments (u'/test/agent', u'Keybo
ardDisplay') according to signature '': <type 'exceptions.TypeError'>:
Fewer items found in D-Bus signature than in Python arguments
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 586
, in msg_reply_handler
reply_handler(*message.get_args_list(**get_args_opts))
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 391, i
n _introspect_reply_handler
self._introspect_execute_queue()
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 378, i
n _introspect_execute_queue
proxy_method(*args, **keywords)
File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 132, i
n __call__
**keywords)
File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 566
, in call_async
message.append(signature=signature, *args)
TypeError: Fewer items found in D-Bus signature than in Python argumen
ts
---
test/simple-agent | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/test/simple-agent b/test/simple-agent
index deb6497..bb40eae 100755
--- a/test/simple-agent
+++ b/test/simple-agent
@@ -169,9 +169,7 @@ if __name__ == '__main__':
options.adapter_pattern)
dev_path = device.object_path
agent.set_exit_on_release(False)
- device.Pair(path, capability, timeout=options.timeout,
- reply_handler=pair_reply,
- error_handler=pair_error)
+ device.Pair(reply_handler=pair_reply, error_handler=pair_error)
device_obj = device
else:
manager.RequestDefault()
--
1.7.11.7
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH BlueZ] test: Update simple-agent to new API
2012-12-17 22:48 [PATCH BlueZ] test: Update simple-agent to new API João Paulo Rechi Vita
@ 2012-12-17 23:23 ` Marcel Holtmann
0 siblings, 0 replies; 2+ messages in thread
From: Marcel Holtmann @ 2012-12-17 23:23 UTC (permalink / raw)
To: João Paulo Rechi Vita; +Cc: linux-bluetooth
Hi Joao Paulo,
> The method org.bluez.Device.Pair() doesn't have arguments anymore. This
> commit fixes the following error:
>
> $ test/simple-agent hci0 4C:B1:99:F1:BC:E9
> Agent registered
> ERROR:dbus.connection:Unable to set arguments (u'/test/agent', u'Keybo
> ardDisplay') according to signature '': <type 'exceptions.TypeError'>:
> Fewer items found in D-Bus signature than in Python arguments
> Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 586
> , in msg_reply_handler
> reply_handler(*message.get_args_list(**get_args_opts))
> File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 391, i
> n _introspect_reply_handler
> self._introspect_execute_queue()
> File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 378, i
> n _introspect_execute_queue
> proxy_method(*args, **keywords)
> File "/usr/lib/python2.7/site-packages/dbus/proxies.py", line 132, i
> n __call__
> **keywords)
> File "/usr/lib/python2.7/site-packages/dbus/connection.py", line 566
> , in call_async
> message.append(signature=signature, *args)
> TypeError: Fewer items found in D-Bus signature than in Python argumen
> ts
> ---
> test/simple-agent | 4 +---
> 1 file changed, 1 insertion(+), 3 deletions(-)
patch has been applied.
Regards
Marcel
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-12-17 23:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-17 22:48 [PATCH BlueZ] test: Update simple-agent to new API João Paulo Rechi Vita
2012-12-17 23:23 ` Marcel Holtmann
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).