My favorites | Sign in
Project Logo
                
Search
for
Updated Mar 03, 2008 by ashuang
Documentation  
PyBluez documentation

Requirements

GNU/Linux:

Windows XP:

Installation

Windows users can download and run the executable installer.

Debian/Ubuntu users can apt-get install python-bluetooth

Fedora users can yum install pybluez

Otherwise, check your OS distribution for packages, or download the latest release and untar it.

Then, in a shell, wherever you unpacked the tarball,

    $ python setup.py install 

Examples

There are a few examples included with the source distribution. Most are simple and straightforward. One of them (bluezchat) requires that python gtk2 and glade2 bindings be installed. Here are a few of the simple examples.

API Documentation

Programming with PyBluez

If you've done any sort of socket programming before at all, you should find it pretty easy to get started with PyBluez, as we tried to stick pretty close to the Python Socket module.

To communicate with another bluetooth device, you simply create a socket and open a connection. You specify the kind of connection you want (e.g. L2CAP, RFCOMM, SCO) as parameters when you create the socket.

There is also Bluetooth Essentials for Programmers



Sign in to add a comment
Hosted by Google Code