icommand.nxtcomm
Class NXTComm

java.lang.Object
  extended by icommand.nxtcomm.NXTComm

public class NXTComm
extends java.lang.Object

NXTComm is the base class for communicating with the NXT via Bluetooth. Usage: All methods in NXTComm are static. NXTComm.connect(); NXTComm.sendData(message1); byte [] myArray = NXTComm.readData(); NXTComm.close();

Version:
0.2 4-September-2006
Author:
Brian Bagnall

Method Summary
static void close()
          Terminates the Bluetooth connection.
static byte[] readData()
           
static void sendData(byte[] message)
          Sends a command to the NXT brick.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

readData

public static byte[] readData()

sendData

public static void sendData(byte[] message)
Sends a command to the NXT brick.

Parameters:
message - Data to send.

close

public static void close()
Terminates the Bluetooth connection.