All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lejos.remote.nxt.NXTCommRequest Maven / Gradle / Ivy

Go to download

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;

}






© 2015 - 2024 Weber Informatics LLC | Privacy Policy