Warning: Cannot modify header information - headers already sent by (output started at /home/mypapit/mobilepitshit/wp-config.php:319) in /home/mypapit/mobilepitshit/wp-content/plugins/bad-behavior/bad-behavior/screener.inc.php on line 9
Create PC Bluetooth application easily with pybluez » Mobile Programming Pit Stop
Oct 232007

pybluez is a python bindings for the bluez application which enables you to interface with bluetooth devices on your computer.

Combined with the power of python dynamic typing, you will be able to do Rapid Application Development and test mobile bluetooth application quickly on your computer

Here’s a snippets which combines pyosd and pybluez which scans for nearby bluetooth devices and display the result on screen :

import bluetooth
import pyosd
from time import sleep

p = pyosd.osd()


p.display( "Scanning for bluetooth device")

nearby_devices = bluetooth.discover_devices(duration=20, lookup_names = True)

str= "found %d devices" % len(nearby_devices)
print str

for name, addr in nearby_devices:
   p.display( "  %s - %s" % (addr, name))
   print (" %s - %s" % (addr,name))

Python enables Rapid Application Development on your computer without much fuss. Coupled with pygtk and wxPython acting as GUI, you can create a lot of bluetooth application to interface with your mobile devices, limited only by your imagination.


  One Response to “Create PC Bluetooth application easily with pybluez”

 Leave a Reply



You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

This blog is protected by dr Dave\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'s Spam Karma 2: 294636 Spams eaten and counting...