lejos.nxt.remote
Interface NXTCommRequest

All Known Implementing Classes:
NXTComm

public interface NXTCommRequest

Interface that all NXTComm implementation classes must implement for low-level communication with the NXT.

WARNING: THIS CLASS IS SHARED BETWEEN THE classes AND pccomms PROJECTS. DO NOT EDIT THE VERSION IN pccomms AS IT WILL BE OVERWRITTEN WHEN THE PROJECT IS BUILT.


Method Summary
 void close()
          Close the connection
 byte[] sendRequest(byte[] message, int replyLen)
          Send an LCP message to the NXT and receive a reply
 

Method Detail

close

void close()
           throws IOException
Close the connection

Throws:
IOException

sendRequest

byte[] sendRequest(byte[] message,
                   int replyLen)
                   throws IOException
Send an LCP message to the NXT and receive a reply

Parameters:
message - the LCP message
replyLen - the reply length expected
Returns:
the reply
Throws:
IOException