Blob: get-obex-capabilities
Blob id: c2e5710db059d0553cfdbf2b68711c9ec6a91e1c
Size: 557 B
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | #!/usr/bin/env python3 # SPDX-License-Identifier: LGPL-2.1-or-later import sys import dbus bus = dbus.SessionBus() client = dbus.Interface(bus.get_object("org.bluez.obex", "/org/bluez/obex"), "org.bluez.obex.Client") if (len(sys.argv) < 3): print("Usage: %s <device> <target>" % (sys.argv[0])) sys.exit(1) print("Creating Session") session_path = client.CreateSession(sys.argv[1], { "Target": sys.argv[2] }) session = dbus.Interface(bus.get_object("org.bluez.obex", session_path), "org.bluez.obex.Session") print(session.GetCapabilities()) |