From 4aa07a5ae2035b9ad13c63c3cb85192c85d85252 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Mon, 9 Jun 2008 04:06:15 +0000 Subject: Allow interactive input of passkey --- hcid/simple-agent | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hcid/simple-agent') diff --git a/hcid/simple-agent b/hcid/simple-agent index 7cd29be6..0d454baf 100755 --- a/hcid/simple-agent +++ b/hcid/simple-agent @@ -30,7 +30,8 @@ class Agent(dbus.service.Object): in_signature="o", out_signature="u") def RequestPasskey(self, device): print "RequestPasskey (%s)" % (device) - return dbus.UInt32(123456) + passkey = raw_input("Enter passkey: ") + return dbus.UInt32(passkey) @dbus.service.method("org.bluez.Agent", in_signature="ou", out_signature="") -- cgit