|
Main
Documentation Download Links |
RequirementsGNU/Linux:
Windows XP:
InstallationWindows 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,
ExamplesThere 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 DocumentationProgramming with PyBluezIf 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 An Introduction to Bluetooth programming in GNU/Linux. |