Package lejos.remote.nxt
Interface NXTCommRequest
-
- All Known Implementing Classes:
NXTComm
public interface NXTCommRequestInterface that all NXTComm implementation classes must implement for low-level communication with the NXT.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclose()Close the connectionbyte[]sendRequest(byte[] message, int replyLen)Send an LCP message to the NXT and receive a reply
-
-
-
Method Detail
-
close
void close() throws java.io.IOExceptionClose the connection- Throws:
java.io.IOException
-
sendRequest
byte[] sendRequest(byte[] message, int replyLen) throws java.io.IOExceptionSend an LCP message to the NXT and receive a reply- Parameters:
message- the LCP messagereplyLen- the reply length expected- Returns:
- the reply
- Throws:
java.io.IOException
-
-