--- test/simple-agent | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/simple-agent b/test/simple-agent index 64b2ca8..5475770 100755 --- a/test/simple-agent +++ b/test/simple-agent @@ -148,14 +148,13 @@ if __name__ == '__main__': if options.capability: capability = options.capability - path = "/test/agent" - agent = Agent(bus, path) + agent = Agent(bus, AGENT_PATH) mainloop = GObject.MainLoop() obj = bus.get_object(BUS_NAME, "/org/bluez"); manager = dbus.Interface(obj, "org.bluez.AgentManager1") - manager.RegisterAgent(path, capability) + manager.RegisterAgent(AGENT_PATH, capability) print("Agent registered") @@ -173,6 +172,6 @@ if __name__ == '__main__': timeout=60000) device_obj = device else: - manager.RequestDefaultAgent(path) + manager.RequestDefaultAgent(AGENT_PATH) mainloop.run() -- 1.7.9.5 -- 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