pt.citar.diablu.nxt.protocol
Class NXTResponseReceiveMsg
java.lang.Object
pt.citar.diablu.nxt.protocol.NXTResponse
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
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 |
Method Summary |
byte[] |
getData()
Returns the message data. |
int |
getMessageSize()
Returns the number of bytes read. |
NXTResponseReceiveMsg
public NXTResponseReceiveMsg()
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