NAME
LEGO::NXT::BlueComm - The Bluetooth Communication Module For the NXT
SYNOPSIS
use LEGO::NXT::BlueComm;
$comm = new LEGO::NXT::BlueComm('xx:xx:xx:xx',0);
DESCRIPTION
Presents a Bluetooth comm interface to the LEGO NXT for internal use in the LEGO::NXT module.
METHODS
new
$btaddr = 'xx:xx:xx:xx';
$port = 0;
$comm = new LEGO::NXT:BlueComm($btaddr,$port);
$nxt = LEGO::NXT->new( $comm );
Creates a new Bluetooth comm object. $btaddr is the bluetooth address of your NXT - can be obtained by "hcitool scan" on Linux platforms. $port should be 0 or 1.