Bluetooth

From Lazarus-ccr

Jump to: navigation, search

Contents

[edit] About

The bluetoothlaz package provides bindings and functions to access bluetooth devices under various platforms.

It contains examples, like accessing the Wii Remote.

[edit] Author

Mattias Gaertner

[edit] License

LGPL (please contact the author if the LGPL doesn't work with your project licensing)

[edit] Download

The latest stable release can be found on the Lazarus CCR Files page.

[edit] Status

Alpha

At the moment the package only supports Linux. Eventually it will support Windows, MacOSX and other platforms and will get some platform independent Wrapper functions/classes.


[edit] Dependencies / System Requirements

[edit] Linux

The BlueZ libraries plus their development files must be installed.

[edit] Ubuntu/Debian

Install the libbluetooth-dev package:

 sudo apt-get install libbluetooth-dev

[edit] Mandriva/Redhat

Install the libbluez-devel package.

[edit] Installation

Download and unpack the package to a directory of your choice. In the Lazarus IDE use Package / Open package file. A file dialog will appear. Choose the bluetooth/bluetoothlaz.lpk and open it. That's all. The IDE now knows the package.

[edit] Examples

There are two examples for the Wii Remote. One that demonstrates how to connect to a Wii Remote and shows the infrared sensors and one that demonstrates VR headtracking with the Wii Remote and the 3D package Asmoday.

[edit] ToDo: Usage/Tutorial/Reference

The package is quite new and not yet complete. Documentation will be written, when some more platforms are supported and the API has stabilized.