Jppy: sending vcards with bluetooth

Nicholas Piper nick at nickpiper.co.uk
Sun Mar 25 19:05:00 BST 2007


martin,

On Tue, 20 Mar 2007, martin f krafft wrote:

> Unfortunately, I still cannot send Vcards to OBEX phones, and the
> problem seems to be that lightblue tries to talk on a channel that
> my phone does not listen on. I can use ObexFTP just fine from the
> command line, using channel 7. If I use lightblue from jppy, I get:

[...]

Please try:

Index: jppy/gui/contacts.py
===================================================================
--- jppy/gui/contacts.py     (revision 207)
+++ jppy/gui/contacts.py     (working copy)
@@ -584,7 +584,7 @@
             open(filename,'w').write(text)
             for address in addresses:
                 print "Sending to %s" % address
-                lightblue.obex.sendfile(address,11,filename)
+                lightblue.obex.sendfile(address,7,filename)
             os.unlink(filename)
             dialog.destroy()            
         else:

If that helps, then please create a new trac ticket and I'll see about
querying for the correct channel.

 Nick

-- 
Nick Piper, Developer, LogicaCMG           http://www.nickpiper.co.uk/
GPG Encrypted mail welcome!                             1024D/3ED8B27F
Choose life. Be Vegan :-) Please reduce needless cruelty & suffering !




More information about the Jppy mailing list