6 bus = dbus.SessionBus()
7 client = dbus.Interface(bus.get_object("org.bluez.obex", "/org/bluez/obex"),
8 "org.bluez.obex.Client")
10 if (len(sys.argv) < 4):
11 print "Usage: %s <device> <clientfile> <file>" % (sys.argv[0])
14 print "Creating Session"
15 path = client.CreateSession(sys.argv[1], { "Target": "OPP" })
16 opp = dbus.Interface(bus.get_object("org.bluez.obex", path),
17 "org.bluez.obex.ObjectPush")
19 opp.ExchangeBusinessCards(sys.argv[2], sys.argv[3])