Michael Collins > LEGO-NXT-2.00-1 > LEGO::NXT::BlueComm

Download:
LEGO-NXT-2.00-1.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Source  

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.

syntax highlighting: