summaryrefslogtreecommitdiffstats
path: root/hcid
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@nokia.com>2008-06-09 04:06:15 +0000
committerJohan Hedberg <johan.hedberg@nokia.com>2008-06-09 04:06:15 +0000
commit4aa07a5ae2035b9ad13c63c3cb85192c85d85252 (patch)
tree3e4d2a4a9b25e657f1f3a5b49b82ba98112ca885 /hcid
parenta2529a9b417959a52f5d501cba4bcaf32caf6964 (diff)
Allow interactive input of passkey
Diffstat (limited to 'hcid')
-rwxr-xr-xhcid/simple-agent3
1 files changed, 2 insertions, 1 deletions
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="")