LEGO::NXT::BlueComm - The Bluetooth Communication Module For the NXT
use LEGO::NXT::BlueComm; $comm = new LEGO::NXT::BlueComm('xx:xx:xx:xx',0);
Presents a Bluetooth comm interface to the LEGO NXT for internal use in the LEGO::NXT module.
$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.
To install LEGO::NXT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm LEGO::NXT
CPAN shell
perl -MCPAN -e shell install LEGO::NXT
For more information on module installation, please visit the detailed CPAN module installation guide.