pt.citar.diablu.nxt.protocol
Class NXTResponseReceiveMsg

java.lang.Object
  extended by pt.citar.diablu.nxt.protocol.NXTResponse
      extended by pt.citar.diablu.nxt.protocol.NXTResponseReceiveMsg

public class NXTResponseReceiveMsg
extends NXTResponse

Encapsulates the response to the MESSAGEREAD command to the NXTBrick.

Author:
Jorge Cardoso, Dave Musicant

Field Summary
 
Fields inherited from class pt.citar.diablu.nxt.protocol.NXTResponse
ATTEMPTED_TO_ACCESS_INVALID_FIELD_OF_A_STRUCTURE, BAD_ARGUMENTS, BAD_INPUT_OR_OUTPUT_SPECIFIED, COMMUNICATION_BUS_ERROR, DATA_CONTAINS_OUT_OF_RANGE_VALUES, ILLEGAL_MAILBOX_QUEUE_ID_SPECIFIED, ILLEGAL_SIZE_SPECIFIED, INSANE_PACKET, INSUFFICIENT_MEMORY_AVAILABLE, NO_ACTIVE_PROGRAM, NO_FREE_MEMORY_IN_COMMUNICATION_BUFFER, PENDING_COMMUNICATION_TRANSACTION_IN_PROGRESS, REQUEST_FAILED, SPECIFIED_CHANNEL_CONNECTION_IS_NOT_VALID, SPECIFIED_CHANNEL_CONNECTION_NOT_CONFIGURED_OR_BUSY, SPECIFIED_MAILBOX_QUEUE_IS_EMPTY, SUCCESS, UNKNOWN_COMMAND_OPCODE
 
Constructor Summary
NXTResponseReceiveMsg()
           
 
Method Summary
 byte[] getData()
          Returns the message data.
 int getMessageSize()
          Returns the number of bytes read.
 
Methods inherited from class pt.citar.diablu.nxt.protocol.NXTResponse
getStatus, getStatusDescription, receiveResponse, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NXTResponseReceiveMsg

public NXTResponseReceiveMsg()
Method Detail

getMessageSize

public int getMessageSize()
Returns the number of bytes read.

Returns:
The number of bytes read.

getData

public byte[] getData()
Returns the message data.

Returns:
The message data. Always a 59 byte array.


Processing library NXTComm by Jorge C. S. Cardoso. (c) 2014