|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecticommand.nxtcomm.NXTComm
public class NXTComm
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();
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 |
---|
public static byte[] readData()
public static void sendData(byte[] message)
message
- Data to send.public static void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |