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

This page was last modified 19:54, 27 March 2008.

How to take a picture and send it over bluetooth

From Forum Nokia Wiki

This example shows how to take a picture and send it using Bluetooth (OBEX). The script uses camera, e32, socket and graphics modules.


import camera,e32
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
	image= camera.take_photo()  
	appuifw.app.body=c=appuifw.Canvas()
	c.blit(image,scale=1)
	file=(u'c:\\Nokia\\Images\\pic001.jpg')
	image.save(file)
	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()

The following screenshots are the outcome.

Image:Example5-1.jpg‎Image:Example5-2.jpg‎ Image:Example5-3.jpg‎Image:Example5-4.jpg‎

Related Discussions
Thread Thread Starter Forum Replies Last Post
How to send Picture Message by SMS? jaher Smart Messaging 2 2003-04-04 15:27
3650 and ipaq 5455 bluetooth features toriki Bluetooth Technology 4 2003-08-02 05:17
Send SMS using a Bluetooth connection???? ankitshrivastav General Messaging 4 2006-10-11 15:52
Bluetoth dongle with emulator rami75lu Bluetooth Technology 5 2005-05-19 02:33
SMS over Bluetooth BalakrishM Bluetooth Technology 3 2005-03-17 12:54
 
Powered by MediaWiki
     
     RDF Facets:
     
     
     qfnZtopicQUqfnTopicZbluetoothQ
     qfnZtopicQUqfnTopicZconnectivityQ
     qfnZtopicQUqfnTopicZpythonQ
     qfnZtopicQUqfnTopicZseriesE5f60Q
     qfnZtypeQUqfnTypeZCommunityContentQ
     qfnZtypeQUqfnTypeZWebpageQ
     qfnZtypeQUqfnTypeZWikiContentQ
     qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX