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.IOException
public byte[] sendRequest(byte[] message, int replyLen) throws java.io.IOException
NXTCommRequest
sendRequest
in interface NXTCommRequest
message
- the LCP messagereplyLen
- the reply length expectedjava.io.IOException
public void close() throws java.io.IOException
NXTCommRequest
close
in interface NXTCommRequest
java.io.IOException