Join Now
Quality Rating:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)
Expertise Level:
  • Currently 0.0 / 5
(0.0 / 5 - 0 votes cast)

This page was last modified 19:59, 14 October 2007.

How to send files using bluetooth

From Forum Nokia Wiki

from socket import *
a = '00:10:60:ab:25:6f'
bt_obex_discover(a)	# found at port 3
f = u'C:\\Nokia\\Startermonlog.txt'
bt_obex_send_file(a, 3, f)

Here's another example :

from appuifw import *
from e32socket import *
 
try:
    phone = bt_obex_discover()
    addr=phone[0]
    port=phone[1].values()[0]
    file = query(u'File Selection', 'text')
    bt_obex_send_file(addr, port , file)
    note(u'File Sent')
except Exception, error:
    note(unicode(error), 'error')
 
Powered by MediaWiki