From: Luiz Augusto von Dentz <luiz.von.dentz@xxxxxxxxx> --- test/opp-client | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/test/opp-client b/test/opp-client index ef76d18..5c1daea 100755 --- a/test/opp-client +++ b/test/opp-client @@ -21,17 +21,17 @@ class OppClient: def __init__(self, session_path): self.transfer_path = None bus = dbus.SessionBus() - obj = bus.get_object("org.openobex.client", session_path) - self.session = dbus.Interface(obj, "org.openobex.Session") - self.opp = dbus.Interface(obj, "org.openobex.ObjectPush") + obj = bus.get_object("org.bluez.obex.client", session_path) + self.session = dbus.Interface(obj, "org.bluez.obex.Session") + self.opp = dbus.Interface(obj, "org.bluez.obex.ObjectPush") bus.add_signal_receiver(self.transfer_complete, - dbus_interface="org.openobex.Transfer", - signal_name="Complete", - path_keyword="path") + dbus_interface="org.bluez.obex.Transfer", + signal_name="Complete", + path_keyword="path") bus.add_signal_receiver(self.transfer_error, - dbus_interface="org.openobex.Transfer", - signal_name="Error", - path_keyword="path") + dbus_interface="org.bluez.obex.Transfer", + signal_name="Error", + path_keyword="path") def create_transfer_reply(self, reply): (path, properties) = reply @@ -79,11 +79,12 @@ if __name__ == '__main__': bus = dbus.SessionBus() mainloop = gobject.MainLoop() - client = dbus.Interface(bus.get_object("org.openobex.client", "/"), - "org.openobex.Client") + client = dbus.Interface(bus.get_object("org.bluez.obex.client", "/"), + "org.bluez.obex.Client") print "Creating Session" - session_path = client.CreateSession(options.device, { "Target": "OPP" }) + session_path = client.CreateSession(options.device, + { "Target": "OPP" }) opp_client = OppClient(session_path) -- 1.7.10.2 -- 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