Re: no client session close in obexd 0.23?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks!

Followup question - I'm trying to use it, but it throws this exception:
dbus.exceptions.DBusException: org.openobex.Error.InvalidArguments:

What am I doing wrong? What is the right input?

Here's a sample Python script:

---

#!/usr/bin/env python

import dbus

bus = dbus.SessionBus()
proxy = bus.get_object('org.openobex.client', '/')
client = dbus.Interface(proxy, 'org.openobex.Client')

address = '00:1C:26:FC:15:AF'

print('Opening FTP session')
path = client.CreateSession({'Target': 'ftp', 'Destination': address})
print(path)
client.RemoveSession(path)
print('FTP session closed')

---

Output:

Opening FTP session
/org/openobex/session0
Traceback (most recent call last):
  File "./test-ftp.py", line 14, in <module>
    client.RemoveSession(path)
  File "/usr/lib/python2.6/site-packages/dbus/proxies.py", line 140, in __call__
    **keywords)
  File "/usr/lib/python2.6/site-packages/dbus/connection.py", line
630, in call_blocking
    message, timeout)
dbus.exceptions.DBusException: org.openobex.Error.InvalidArguments:
--
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

[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux