lejos.remote.nxt.NXTCommRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lejos-ev3-api Show documentation
Show all versions of lejos-ev3-api Show documentation
leJOS (pronounced like the Spanish word "lejos" for "far") is a tiny Java Virtual Machine. In 2013 it was ported to the LEGO EV3 brick.
The newest version!
package lejos.remote.nxt;
import java.io.*;
/**
* Interface that all NXTComm implementation classes must implement for low-level communication
* with the NXT.
*
*/
public interface NXTCommRequest {
/**
* Close the connection
* @throws IOException
*/
public void close() throws IOException;
/**
* Send an LCP message to the NXT and receive a reply
*
* @param message the LCP message
* @param replyLen the reply length expected
* @return the reply
* @throws IOException
*/
public byte[] sendRequest(byte [] message, int replyLen) throws IOException;
}