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.
    • Method Detail

      • close

        void close()
            throws java.io.IOException
        Close the connection
        Throws:
        java.io.IOException
      • sendRequest

        byte[] sendRequest​(byte[] message,
                           int replyLen)
                    throws java.io.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:
        java.io.IOException