Difference between revisions of "Bluetooth"

From Lazarus wiki
Jump to navigationJump to search
m (Reverted edits by Reverse22 (Talk); changed back to last version by Eny)
Line 35: Line 35:
 
Install the '''libbluetooth-dev''' package:
 
Install the '''libbluetooth-dev''' package:
  
  sudo apt-get install libbluetooth-dev
+
<syntaxhighlight lang="bash">sudo apt-get install libbluetooth-dev</syntaxhighlight>
  
 
====Mandriva/Redhat====
 
====Mandriva/Redhat====
Line 52: Line 52:
  
 
The package is quite new and not yet complete. Documentation will be written, when some more platforms are supported and the API has stabilized.
 
The package is quite new and not yet complete. Documentation will be written, when some more platforms are supported and the API has stabilized.
 +
 +
[[Category:Components]]

Revision as of 09:33, 2 May 2012

English (en) español (es)

About

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

It contains examples, like accessing the Wii Remote.

Author

Mattias Gaertner

License

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

Download

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

Status

Alpha

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

Dependencies / System Requirements

Linux

The BlueZ libraries plus their development files must be installed.

Ubuntu/Debian

Install the libbluetooth-dev package:

sudo apt-get install libbluetooth-dev

Mandriva/Redhat

Install the libbluez-devel package.

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.

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.

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.