public class NXTComm extends java.lang.Object implements NXTCommRequest
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the connection
|
boolean |
open(java.lang.String name,
int mode) |
byte[] |
sendRequest(byte[] message,
int replyLen)
Send an LCP message to the NXT and receive a reply
|
public boolean open(java.lang.String name,
int mode)
throws java.io.IOException
java.io.IOExceptionpublic byte[] sendRequest(byte[] message,
int replyLen)
throws java.io.IOException
NXTCommRequestsendRequest in interface NXTCommRequestmessage - the LCP messagereplyLen - the reply length expectedjava.io.IOExceptionpublic void close()
throws java.io.IOException
NXTCommRequestclose in interface NXTCommRequestjava.io.IOException