hi,
the code down below is what i have right now. what i want to do: i want to send a photo (from a cellphone, i'm using python for s60) to all other cellphones in the room that have bluetooth switched on and are visible.
right now i have to select the devices first and then send the photo, but i want this to happen automatically. so that the picture is automatically sent to all visible devices at the same time when the script runs.
i found this http://snippets.dzone.com/posts/show/98, but i can't get the libraries installed.
can anybody help me? how else could i do this?
Code:import camera,e32, appuifw from graphics import * from socket import * def main_menu(): appuifw.app.menu = [(u"Start", Start),(u"Exit",app_exit)] def Start(): appuifw.app.body=old_body file=(u"C:\\Data\\Images\\Pictures\\mauer1.jpg") device=bt_obex_discover() address=device[0] channel=bt_obex_discover(address)[1][u'OBEX Object Push'] bt_obex_send_file(address,channel,file) appuifw.app.body=c=appuifw.Canvas() c.blit(image,scale=1) def app_exit(): appuifw.app.set_exit() old_body=appuifw.app.body lock = e32.Ao_lock() appuifw.app.title = u"BT example" main_menu() lock.wait()

Reply With Quote

